in some case we are getting 1008 error code on websocket.
in the documentation (http://docs.microsofttranslator.com/speech-translate.html), there are some error codes, like 1001, 1011, but not 1008.
it seems for us that Azure closes the websocket connection, with this error code, in certain cases. the question is why this happens?
Translator closes the websocket connection after a period of inactivity. You will want to silently recreate the websocket connection when you receive this error.
That is generally a good thing, because you won’t be charged for the time the connection is not open.
The docs could be better in documenting the techniques for keeping the connection alive and the associated messaging. I’ll see to making that happen.
- Don't see your idea?