QHttpServer and QWebSocket same port
Unsolved
General and Desktop
-
Re: Can I handle http and websocket on a same port by QHttpServer?
from the original thread someone said that it is possible yes , it possible to get the websocket client , but how can i return a response if someone tries to connect via ws:/localhost:port instead of http://localhost:port
i tried release() then sendTextMessage() then flush but the connection close immediately .
scenario
i started server via Qhttpserver , then capture the new pending websocket connection , and then try to connect to ws://localhost:port then write a response , client failed
any thoughts ?
-
Use different ports - anything else will not work.