How to access Websocket Response Headers in Javascript?

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!



You can't. There is no functionality for that at the moment. The point of WebSockets is not HTTP communication. HTTP is only used for the handshake.


Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us Javascript

©2020 All rights reserved.