Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Send cookies in websocket. #227

Open
freynolds opened this issue Jul 1, 2016 · 1 comment
Open

Send cookies in websocket. #227

freynolds opened this issue Jul 1, 2016 · 1 comment

Comments

@freynolds
Copy link

Hello, I have an issue, my server has a HAProxy loadbalancer and I need to send the cookies in the headers and in the connect.
When I add the cookies I can see that the cookies are sent in the request but in socketRocket did connect upgrade, I can see that the cookies in the parameter requestcookies can't be found.

I'm using

    pod 'socket.IO', '0.5.2'
    pod 'SocketRocket', '0.4.2'

My setup is:

    socketIO.cookies = NSHTTPCookieStorage.sharedHTTPCookieStorage().cookiesForURL(NSURL(string: Constants.apiHost)!)
    socketIO.connectToHost(host, onPort: 0, withParams: nil, withNamespace: "NS")

Do you have any idea if I have a bad config or if I should make a PR and add the cookies in the WS request?

My regards.
Francisco.

@freynolds
Copy link
Author

Bump, any news on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant