Can we have websocket and http server running on same port?

I have a python app that serves the regular HTTP requests and Websocket on the same port (i.e. 8080). While this works perfectly fine on local dev, when deploying I get error saying the port is already in use.

So I have a workaround where I am using a different port (which also maps to a different domain like p8081.mydomain.com), but curious if supporting both on the same port is possible?

it was my app issue. resolved now.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.