How to send headers in deno? #9891
-
I am working with an socket api where i need to send headers with the socket connections. However in nodejs it allows me to input headers in the second param. But as deno uses the browser like |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 16 replies
-
You can't set headers for the WebSocket API, as the spec doesnt allow such. See https://github.com/whatwg/html/issues/3062 |
Beta Was this translation helpful? Give feedback.
-
I have viewed all of those and finally ended up here. So is there any other way? |
Beta Was this translation helpful? Give feedback.
-
Well i managed making a ws module which supports custom headers... |
Beta Was this translation helpful? Give feedback.
Well i managed making a ws module which supports custom headers...
https://github.com/scientific-dev/custom-socket