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

Send cookies in websocket. #227

@freynolds

Description

@freynolds

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions