• Yes, requires OpenSSL
  • No, only Blocking mode
  • Yes, Requires Win8.+

Bearer Token Authentication

From sgcWebSockets 4.3.1, WebSocket client supports Token Authentication.

When a server requires a websocket connection with token authentication, use Authentication.Token property in TsgcWebSocketClient to configure Token Authentication.


Example: server requires connect with token "akks9932nefdvf8989dfvnv8998dfvnnna".

oClient := TsgcWebSocketClient.Create(nil);

oClient.Host := 'server host';

oClient.Port := server port;

oClient.Authentication.Enabled := True;

oClient.Authentication.Token.Enabled := True;

oClient.Authentication.Token.AuthToken := 'akks9932nefdvf8989dfvnv8998dfvnnna';

oClient.Authentication.Token.AuthName := 'Bearer';

oClient.Active := True;