Socket.IO 3 API support

From sgcWebSockets 4.4.7, Socket.IO 3 API is supported. 

Now by default, when you create an instance of Socket.IO Client, it's configured against API 3.*


Find below a simple sample of how connect to Socket.IO API 3 server

// create websocket client
oClient := TsgcWebSocketClient.Create(nil);
oClient.Host := '';
oClient.Port := 443;
oClient.TLS := True;
oClient.TLSOptions.Version := tls1_2;
// create client
oSocketIO := TsgcWSAPI_SocketIO.Create(nil);
oSocketIO.Client := oClient;
oSocketIO.API := ioAPI3;
// connect

// send a message
oClient.WriteData('42["add user", "MyUser"]');
Stay Informed

When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.

SChannel Certificates
Binance Futures APIs USDT and COIN

Related Posts