Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <websocket>
- class handler : public websocket::client_handler {
- void on_receive_ping(const websocket::packet &ping) override
- {
- client().send_pong(ping);
- }
- };
- int main()
- {
- websocket::server<handler> ws;
- ws.listen(7331);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement