Welcome to Linux compiler!
With 4.1.0 version, linux compiler is supported so you can build your projects in linux, simple example:
program sgcWebSockets_linux;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.SysUtils, sgcWebSocket;
var
oServer: TsgcWebSocketServer;
begin
try
oServer := TsgcWebSocketServer.Create(nil);
oServer.Port := 5000;
oServer.Active := True;
while oServer.Active do
Sleep(10);
except
on E: Exception do
Writeln(E.ClassName, ': ', E.Message);
end;
end.
Of course, Rad Studio 10.2 is full supported, so you can upgrade your projects to latest version.
MQTT client has been improved with new methods and there is a new demo showing main features.
Full list of changes:
[+] : Added support for Rad Studio 10.2 Tokyo.
[+] : Added support for Linux compiler.
[+] : MQTT client, added subscribe method.
[+] : MQTT client, added unsubscribe method.
[+] : MQTT client, added publish method.
[+] : MQTT client, added Authentication property, allows to set user and password to authenticate against MQTT Server.
[+] : MQTT client, added HeartBeat property, keeps alive connection.
[+] : MQTT client, added LastWillTestament property, when client disconnects, sends a message to other connected clients.
[+] : New Property "NotifyDeletes" in Dataset Server Protocol, if enabled (by default) broadcast deleted record to all clients.
[+] : New Method "BroadcastRecord" in Dataset Server Protocol, sends dataset record values to all clients.
[+] : New Method "MetaData" in Dataset Server Protocol, sends metadata info to a single client.
[+] : New Method "Synchronize" in Dataset Server Protocol, sends dataset record values to a single client.
[*] : Fixed Bug ReadTimeout and ConnectionTimeout in client component.
[*] : Added Guid property to Client File Protocol.
[*] : Fixed Bug Invalid Character when trying to access to built-in javascript libraries.
[*] : Fixed Bug File Protocol when BufferSize was set to zero, file was not saved properly.
[*] : Fixed Memory Leaks on NextGen compiler.
[*] : Fixed WebRTC Chrome console errors.