How to send authentication payload? #4072
-
I am trying to use Postman to "connect" to a Socket.io server. Using a regular client in NodeJS would look like this: const io = io(url, {
auth: {
token: 123
}
}); How to I pass this Yes, WebSocket requests in Postman are in beta. That could very much be the reason why I can't get it to work, but if any of you has tried this before and got it to work, please let me know. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi! You must include the
Please note that Postman now has first-class support for Socket.IO: https://blog.postman.com/postman-now-supports-socket-io/ |
Beta Was this translation helpful? Give feedback.
-
Hi |
Beta Was this translation helpful? Give feedback.
Hi! You must include the
auth
object in the CONNECT packet:Please note that Postman now has first-class support for Socket.IO: https://blog.postman.com/postman-now-supports-socket-io/