Start the scripted mock on a free port. Each /v1/messages POST consumes the next turn (the last turn repeats if the client asks for more). Resolves to a handle with the base url and a close().
/v1/messages
url
close()
Optional
Called with each /v1/messages request as it arrives — used by the in-sandbox mock entry to stream requests to a file for the parent.
Start the scripted mock on a free port. Each
/v1/messagesPOST consumes the next turn (the last turn repeats if the client asks for more). Resolves to a handle with the baseurland aclose().