kaistseo / UnitySocketIO-WebSocketSharp

UnitySocketIO using websocket-sharp instead of WebSocket4Net
164 stars 54 forks source link

Not working with https #16

Closed sonnyCZE closed 9 years ago

sonnyCZE commented 9 years ago

Hello,

I can't to connect to my server with ws://address.tld or wss://address.tld I figure out, that http://address.tld is working. So this is not a problem.

But I am not able to figure out, how to connect to server with https. I am trying to connect to heroku. With http only it working like a charm but with https (even with specific 443 port) it fails.

So my question is. Does this websocket with https?

Here is log:

socket Error: Error initializing handshake with https://itdrawing.herokuapp.com/
UnityEngine.Debug:Log(Object)
InstantiatePoints:<Start>m__2(Object, ErrorEventArgs) (at Assets/scripts/instantiater/InstantiatePoints.cs:33)
SocketIOClient.Client:OnErrorEvent(Object, ErrorEventArgs)
SocketIOClient.Client:Connect()
InstantiatePoints:Start() (at Assets/scripts/instantiater/InstantiatePoints.cs:35)
sonnyCZE commented 9 years ago

Compile dll from actual source solved my problem. Https connection is now working.