Depuis sgcWebSockets 4.4.7, Socket.IO 3 API est pris en charge.
Now par défaut, lorsque tu crées an instance de Socket.IO Client, c'est configured against API 3.*
Sample
Voici un simple sample de comment se connecter à API Socket.IO 3 server
// create websocket client
oClient := TsgcWebSocketClient.Create(nil);
oClient.Host := 'socketio-chat-h9jt.herokuapp.com';
oClient.Port := 443;
oClient.TLS := True;
oClient.TLSOptions.Version := tls1_2;
// create socket.io client
oSocketIO := TsgcWSAPI_SocketIO.Create(nil);
oSocketIO.Client := oClient;
oSocketIO.API := ioAPI3;
// connect
oClient.connect;
// send a message
oClient.WriteData('42["add user", "MyUser"]');

