coder / websocket

Minimal and idiomatic WebSocket library for Go
ISC License
3.81k stars 286 forks source link

Setting authorization headers on handshake request #457

Closed Abi-Liu closed 2 months ago

Abi-Liu commented 2 months ago

Is there a way to set headers when performing the WebSocket handshake protocol on the URL?

Abi-Liu commented 2 months ago

After looking more into the documentation I saw that you can pass in an HTTP Header inside the DialOptions struct.