benwtrent / janus-gateway-android

This is an API wrapper that utilizes the native WebRTC build and is made to ease communication with the janus-gateway
MIT License
112 stars 73 forks source link

AndroidAsync WebSocket closes with exception #1

Closed benwtrent closed 8 years ago

benwtrent commented 8 years ago

When receiving a larger message from the JanusGateway (say, an OK message from Echo Test) androidSync websocket logic throws an exception.

The exception is that an Integer cannot be converted into BigInteger. This consequently closes the socket and makes the rest of the calls fail.

Trying to narrow down the source/reason for this error as no conversion of the actual text of the message should be happening in the socket logic and the JSON parsing is done withing its own try/catch...

benwtrent commented 8 years ago

Welp, this was on my end...ugh. I should have caught the exception.