End a task and close session

When the audio data stream has been fully transmitted by the client to service, the client must issue a closing text message with the following JSON content:

{
	‘control’: ‘end’
}

This message signals the end of the audio transmission by the client side. Nevertheless, result messages will continue to arrive for a while even after an ‘end’ command has been issued.
At this point the user can initiate another streaming task in the same session or can continue by simply closing the session.

After the stream processing is over, call-level and additional results will be available for each job by calling the REST API get results method. For the call-level result JSON schema, please consult the Result specification of Result API.