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

How do you send headers when connecting to a web socket? #31

Open
laredotornado opened this issue Mar 23, 2018 · 2 comments
Open

How do you send headers when connecting to a web socket? #31

laredotornado opened this issue Mar 23, 2018 · 2 comments

Comments

@laredotornado
Copy link

Hi,

Is it possible to send headers to the web socket when first making a connection? I was looking to replicate this code that uses curl ( https://gist.github.com/htp/fbce19069187ec1cc486b594104f01d0 ) using your web socket client.

@sunchess
Copy link

According the code https://github.com/shokai/websocket-client-simple/blob/master/lib/websocket-client-simple/client.rb#L32 WebSocket::Client::Simple.connect(URL, header: {your: "header"}) should work

@unasuke
Copy link
Contributor

unasuke commented Dec 30, 2021

@laredotornado This repository was moved ruby-jp/websocket-client-simple. If you still need this, make pull request or issue to ruby-jp/websocket-client-simple again, thx.

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

No branches or pull requests

3 participants