javascript - Unrecognized frame opcode: 5 and web socket closes - Stack Overflow

I get this error very often in my web socket application and web socket immediately closes.The only er

I get this error very often in my web socket application and web socket immediately closes. The only error message I see is "Unrecognized frame opcode: 5 " in my browser console. Can anyone give me an idea why and in which case this error occurs.

Thanks!

I get this error very often in my web socket application and web socket immediately closes. The only error message I see is "Unrecognized frame opcode: 5 " in my browser console. Can anyone give me an idea why and in which case this error occurs.

Thanks!

Share Improve this question edited Sep 25, 2012 at 12:58 pmfl asked Sep 25, 2012 at 12:51 pmflpmfl 2,1095 gold badges31 silver badges48 bronze badges 2
  • This is not a jQuery-specific question. – user659025 Commented Sep 25, 2012 at 12:57
  • Can you post client code that demonstrates this please? Also, which server are you using? If its not a standard server, can you also post source for it? – simonc Commented Sep 25, 2012 at 13:00
Add a ment  | 

1 Answer 1

Reset to default 2

The final draft of the WebSocket RFC 6455 defines opcodes 0, 1, 8, 9 and 10. Old versions (e.g. version 6) have defined opcode 5 to be a binary frame. This is now obsoleted, that opcode no longer exists.

Your server is outdated and only supports old versions of the WebSocket protocol. Many WebSocket servers support multiple versions and are able to switch between them. You should use a server that does that.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745652766a4638363.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信