zaphoyd / websocketpp

C++ websocket client/server library
http://www.zaphoyd.com/websocketpp
Other
7.08k stars 1.98k forks source link

How to use websocketpp server with client that not using websocketpp library? #1112

Open vasnhnloc opened 1 year ago

vasnhnloc commented 1 year ago

I made a server using websocketpp on linux, and when I connect to clients that are not using websocketpp such as Hercules, QtCreator, the client inform that it is connected, but 5 seconds later, the connection time out occurs and on the server side, the console appears "[fail] WebSocket Connection [::ffff:192.168.0.104]:61667 - "" -0 websocket:22 the opening handshake timed out. All the example server code on the github repository come with the same result. But when I run server and client using websocketpp, the connection is establish successfully.

So how can I connect the websocketpp server with QtCreator or a javascript client? Thank you in advance.