79096509

Date: 2024-10-17 04:54:22
Score: 2.5
Natty:
Report link

As of 2024 you can pass any http/s.request options to the websocket constructor.

See: https://github.com/websockets/ws/issues/2074

const ws = new WebSocket(url, {
  headers: { foo: 'bar' }
});
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: tay_rex