WebSocket
C ++中的WebSocket v13实现
用法
# include " websocket.hpp "
...
using namespace nc ;
loop = uv_default_loop();
websocket::WebSocketClient ws (loop);
ws.on_connection = [](websocket::WebSocket* ws, const websocket::HttpResponse* res) {
ws-> send < char>({ 16 , 0 , 15 , 0 });
ws-> send ( " echo hello " );
res-> end ();
};
ws.connect( " ws://localh
1