Skip to content

Allow sending of cookie header in XHR handshake. #304

@chill117

Description

@chill117

It would be beneficial to be able to send a cookie in the headers of the initial XHR handshake. This would allow persisting of user sessions between socket connections for integration tests of user-driven socket.io applications. I had this working in my own, modified version of socket.io-client and submitted a pull request to socket.io-client [1]. It appears that these changes will need to be made to engine.io-client now.

See related issues from socket.io-client repo:

socketio/socket.io-client#587
socketio/socket.io-client#439

[1] https://github.com/chill117/socket.io-client/commit/14a99041521f5c03ccf7ee3a71c3b56a3131c9ab

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions