AutosoftDMS / SignalR-Swift

SignalR client library written in pure Swift
MIT License
60 stars 55 forks source link

WSError(type: Starscream.ErrorType.protocolError, message: "", code: 1000) #29

Open jasin755 opened 6 years ago

jasin755 commented 6 years ago

I got this error code when I was using websocket transport and I don't know why. When I had used servertransport it worked.

vkedwardli commented 6 years ago

Facing the same problem, seems my SignalR server is expecting clientProtocol=1.5 during connection, so I have set the version to 1.5 in my own HubConnection, and add the clientProtocol param in WebSocketTransport

You may refer to this commit: https://github.com/vkedwardli/SignalR-Swift/commit/a4248b609d09d15054476bb35591432dde89dbc2