Advertisement
peterphonic

ixwebsocket

Feb 10th, 2023
899
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1.     ix::initNetSystem();
  2.     ix::WebSocket webSocket;
  3.     ix::SocketTLSOptions tlsOptions;
  4.     tlsOptions.caFile = "ca.crt";
  5.     webSocket.setTLSOptions(tlsOptions);
  6.     std::string url("wss://localhost:8080");
  7.     //std::string url("wss://192.168.230.138:8080"); //Cannot connect to the ip
  8.     webSocket.setUrl(url);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement