What does 'opcode -1' mean in Chrome?

若如初见. 提交于 2019-12-24 06:55:29

问题


I'm using Chrome browser and I'm trying to create a WebSocket connection (using javascript) but sometimes I get an error. When I'm looking in Developer Tools for the WS connection, I see OPCODE -1. What does this mean?


回答1:


WebSocket OPCODEs describe how to interpret the frame. The OPCODES are formally between 0-10, OPCODE -1 says "not frame that can be used":

https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#Exchanging_Data_Frames

https://tools.ietf.org/id/draft-ietf-hybi-thewebsocketprotocol-09.html#rfc.section.11.14



来源:https://stackoverflow.com/questions/52915732/what-does-opcode-1-mean-in-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!