Skip to content

Cleanup and unify access to request details #3792

Open
@andrejleitner

Description

@andrejleitner

There are socket.request.headers, socket.conn.request.headers and socket.handshake.headers all referencing the same thing, so this is just a suggestion for a clearer interface around request data.

Socket.IO server version: 3.1.0

https://github.com/socketio/socket.io/blob/3.1.0/lib/socket.ts#L126
https://github.com/socketio/socket.io/blob/3.1.0/lib/socket.ts#L587-L589
https://github.com/socketio/socket.io/blob/3.1.0/lib/socket.ts#L596-L598

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions