admin管理员组文章数量:1431586
I need to access the response header from a javascript websocket connection. Is there any way to access these response header? Or at least the response code?
I only have access to the event of onclose, onerror, onopen with a few (unusable - for my purposes) properties!
I need to access the response header from a javascript websocket connection. Is there any way to access these response header? Or at least the response code?
I only have access to the event of onclose, onerror, onopen with a few (unusable - for my purposes) properties!
Share Improve this question edited Jun 28, 2014 at 20:19 Sam 7,39816 gold badges48 silver badges68 bronze badges asked Apr 11, 2014 at 11:56 Loxone ThomasLoxone Thomas 1432 silver badges6 bronze badges1 Answer
Reset to default 7You can't. There is no functionality for that at the moment. The point of WebSockets is not HTTP munication. HTTP is only used for the handshake.
https://developer.mozilla/en-US/docs/Web/API/WebSocket
本文标签: How to access Websocket Response Headers in JavascriptStack Overflow
版权声明:本文标题:How to access Websocket Response Headers in Javascript? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744581773a2613965.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论