Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement WebSocket customisation with headers #25

Merged
merged 3 commits into from
Nov 22, 2022

Conversation

olegbespalov
Copy link
Contributor

What?

Implement parameterization of the WebSocket with headers param. This allows users to pass any additional headers with the WebSocket constructor.

An example: var ws = new WebSocket("wss://host", [], {headers: {"x-lorem": "ipsum"}})

Why?

Resolves #16

Implement paramitarisation of the WebSocket with headers param. This
allow users to pass any additional headers with the WebSocket
constructor.

An example: `var ws = new WebSocket("wss://host", [],
{headers: {"x-lorem": "ipsum"}})`
@olegbespalov olegbespalov self-assigned this Nov 22, 2022
websockets/websockets_test.go Outdated Show resolved Hide resolved
websockets/websockets.go Outdated Show resolved Hide resolved
websockets/websockets_test.go Outdated Show resolved Hide resolved
websockets/websockets_test.go Outdated Show resolved Hide resolved
Co-authored-by: Mihail Stoykov <312246+mstoykov@users.noreply.github.com>
@olegbespalov olegbespalov merged commit bb54907 into main Nov 22, 2022
@olegbespalov olegbespalov deleted the feat/custom-headers branch November 22, 2022 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incomplete HEADER setup, Cookie missing from WS request headers
2 participants