无法识别的框架运code:5和Web插座关闭 [英] Unrecognized frame opcode: 5 and web socket closes

查看:182
本文介绍了无法识别的框架运code:5和Web插座关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到这个错误经常在我的web应用程序接口和网络接口立即关闭。
唯一的错误消息,我看到的是无法识别帧运算code:5在我的浏览器控制台。
谁能给我一个想法,为什么在这种情况下,出现此错误。

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.

谢谢!

推荐答案

的WebSocket RFC 6455定义运codeS 0,1,8,9和10老版(如的第6版)定义运算code 5是一个二元框架。这是现在过时,即运code不再存在。

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.

您的服务器已经过时,而且只支持WebSocket协议的旧版本。许多的WebSocket服务器支持多个版本,并能够在它们之间进行切换。您应该使用该做的服务器。

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.

这篇关于无法识别的框架运code:5和Web插座关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆