Skip to content

How to send authentication payload? #4072

Discussion options

You must be logged in to vote

Hi! You must include the auth object in the CONNECT packet:

40{"token":"123"}

- 4 for Engine.IO "message" type
- 0 for Socket.IO "connect" type
- and then the JSON-encoded payload

Please note that Postman now has first-class support for Socket.IO: https://blog.postman.com/postman-now-supports-socket-io/

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@paramsiddharth
Comment options

@darrachequesne
Comment options

Answer selected by paramsiddharth
Comment options

You must be logged in to vote
1 reply
@paramsiddharth
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants