My iOS application uses SocketRocket
to establish a connection with my websocket server. But after establishing a connection and sending the first message, the server (using gorilla/websocket
) tries to parse the frame, but failed:
message_type, r, err := ws.NextReader()
if err != nil {
goto end
}
An error is reported when calling NextReader():
Websocket Read Failed: [websocket: control frame length > 125]
The strange thing is, I use SocketRocket
's send()
method to send data, so there should never be any control frames (ping/pong).
Has anyone seen this problem before? Help!