I have successfully connected to SmartFox 2.13 with wss and a signed certificate using the latest C# client with a Unity WebGL build.
I'd like to use the new binary protocol but it fails to connect if I select it.
Are there changes needed on the client side to support binary websockets?
Sorry to ask here but the online documentation is contradictory in places.
Thanks
WSS Binary Protocol
Re: WSS Binary Protocol
Hi,
have you turned it on from server side first?
Take a look here too:
http://docs2x.smartfoxserver.com/Gettin ... ration-213
hope it helps
have you turned it on from server side first?
Take a look here too:
http://docs2x.smartfoxserver.com/Gettin ... ration-213
hope it helps
Re: WSS Binary Protocol
Yes, I have turned it on on the server. It fails when it is turned on, works if I turn it off.
I wondered if I need to change anything on the client side for it to work but the documentation you have pointed to doesn't say so.
Perhaps I am too early and it isn't working with the latest client for C# projects yet?
Many thanks
I wondered if I need to change anything on the client side for it to work but the documentation you have pointed to doesn't say so.
Perhaps I am too early and it isn't working with the latest client for C# projects yet?
Many thanks
Re: WSS Binary Protocol
What platform are you testing on? Windows? Mac?
When you say that it fails connecting do you have specific errors on the client or server side?
If so, please post them here.
Thanks
When you say that it fails connecting do you have specific errors on the client or server side?
If so, please post them here.
Thanks
Re: WSS Binary Protocol
I found the answer after a bit of hunting and trial and error.
I had to change
smartFox = new SmartFox(UseWebSocket.WSS);
to:
smartFox = new SmartFox(UseWebSocket.WSS_BIN);
Now it all works perfectly - it also fixed a float / double conversion bug we'd been suffering.
Thankyou
I had to change
smartFox = new SmartFox(UseWebSocket.WSS);
to:
smartFox = new SmartFox(UseWebSocket.WSS_BIN);
Now it all works perfectly - it also fixed a float / double conversion bug we'd been suffering.
Thankyou
Who is online
Users browsing this forum: No registered users and 45 guests