You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
It can be useful to be able to set headers in the client (W3CWebSocket class allows it via constructor fourth parameter), for example to include authentication informations
Anthony.
The text was updated successfully, but these errors were encountered:
@atoy40 , the implementation of W3CWebSocket is for NodeJS environment only, and when using the native WebSocket of the browser, you can't add your own custom HTTP headers (it's browser's policy, that's why you can still do it when using NodeJS).
However, we recently merged this PR: #53 , which allows you to create a custom INIT message with custom data, so you can use it as headers object.
Let me know if that answers your needs
It can be useful to be able to set headers in the client (W3CWebSocket class allows it via constructor fourth parameter), for example to include authentication informations
Anthony.
The text was updated successfully, but these errors were encountered: