1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-06-12 00:34:16 +02:00
Files
Vitaly the Alpaca (bot) 3c23e60d6a Main build (Jenkins)
2026-03-15 13:18:35 +03:00

16 lines
543 B
Plaintext
Vendored

LaunchPort = 9877;
ServerObject = OPI_TCP.StartServer(LaunchPort);
// Send message from client
ConnectionAddress = "127.0.0.1:9877";
ClientObject = OPI_TCP.CreateConnection(ConnectionAddress);
If Not OPI_TCP.IsClientObject(ClientObject) Then
Raise OPI_Tools.JSONString(ClientObject);
Else
Message = "Hello from client!" + Chars.LF;
OPI_TCP.SendLine(ClientObject, Message);
EndIf;
// Receive message on server
Result = OPI_TCP.GetNextConnectionData(ServerObject, 5000, 8192);