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

Can't find header in initial call #81

Closed
tomasimartin opened this issue Dec 4, 2019 · 0 comments
Closed

Can't find header in initial call #81

tomasimartin opened this issue Dec 4, 2019 · 0 comments

Comments

@tomasimartin
Copy link

Hi @WrathChaos ,

we found out where the problem came from, when connecting there is an http call where we pass in the header

HEADER={{"host":["dev.myserver.fr"], "sec-websocket-protocol":["], "sec-websocket-key":["M6rALuZT9o3NRROXksQ==="], "sec-websocket-version":["13"], "upgrade":["websocket"], "origin":["http://dev.myserver.fr], "connection":["Upgrade"]}

but I don't find in this header the parameters I added during the connection:

let headerWS = ["deviceId":deviceToken]
socketClient.openSocketWithURLRequest(request: NSURLRequest(url: url as URL), delegate: self, connectionHeaders: headerWS)

it can come from the SocketRocket library, the initial call to the connection is made without taking into account the header.

I'm not good enough in objective-c to modify the lib myself.

Do you have an idea to pass my header ["deviceId":deviceToken], during the initial call

Originally posted by @tomasimartin in #80 (comment)

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

1 participant