NVentimiglia / Realtime.Messaging.Xamarin

Realtime.co websockets in Xamarin
http://framework.realtime.co/
28 stars 9 forks source link

Invalid protocol frame error #11

Closed roesterr closed 7 years ago

roesterr commented 7 years ago

When calling OrtcClient's Connect method with correct URL at realtime.co and with the correct application key (auth is disabled) I am receiving a OrtcClient.OnExceptionDelegate response with the string, "Invalid protocol frame". I did not see this response anywhere in the client source code.

Any suggestions on the cause or a fix?

This call is from a Xamarin.Forms PCL project running on an iPhone.

roesterr commented 7 years ago

Found the issue. I set the Url property on the OrtcClient object in addition to the ClusterUrl property prior to connecting. Calling connect with a non-empty Url property caused an error. Keeping the Url property empty (only setting the gateway in ClusterURL property) before calling Connect works just fine.