Hey @ryannewton, welcome to the Postman community!
We do not yet support mixing both HTTP and websocket requests in a single collection, for now you’ll have to have two different collections (one for account creation, one for tests) and run them separately.
Hi, Running into similar issues. Cookie-based auth is handled by HTTP, and subsequent socket connections cannot share that ecosystem, relying on alot of error-prone copying and pasting.
Is there a specific reason why Socket and HTTP requests cannot be mixed?
Hey. My worflow is as simple as the example above!
Login is HTTP, auth and refresh cookies returned… we need to share those cookies across HTTP and sockets. Postman handles this elegantly, almost transparently, with HTTP. It’s fantastic.
Whilst we can faciliate a workaround with vars, etc… it feels like a massive hole in what is an otherwise near-perfect experience, which adds complexity and human-error, which it has otherwise been eliminated. It’s incredibly frustrating as it’s one of those small changes that makes a huge difference. It’s difficult to understand why this limitation exists.
Great, thanks. I really apprecaite that. Would this solution allow cookies to automatically persist between collections?
Ideally, it would be great to allow users to add websocket requests to collections alongside HTTP requests, which is specifically what I am asking, really.
Cookies are stored in the local app session, not part of a collection. Yes, HTTP and WebSocket connections will share the same cookies.
Regarding collections with HTTP and WebSocket requests, we are working on that right now, and hopefully we will have a more accurate ETA to be shared soon.