Chrome中的“操作码-1"是什么意思? [英] What does 'opcode -1' mean in Chrome?

查看:194
本文介绍了Chrome中的“操作码-1"是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Chrome浏览器,并尝试创建WebSocket连接(使用javascript),但有时会出现错误.当我在Developer Tools中寻找WS连接时,我看到了OPCODE -1.这是什么意思?

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?

推荐答案

WebSocket OPCODE描述了如何解释框架. OPCODE的格式是0-10,OPCODE -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

这篇关于Chrome中的“操作码-1"是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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