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, but curious if supporting both on the same port is possible?

it was my app issue. resolved now.


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