By Guest on Tuesday, 10 December 2019
Posted in General
Replies 5
Likes 0
Views 4.7K
Votes 0
Hi,
Does the WebSockets Component support UniGui? if yes do you have an example?
Hello,

There is no official support for unigui but I know that some of my customers use Unigui and sgcWebsockets. I don't think it's difficult to implement.

Kind Regards,
Sergio
·
4 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi

I have tried TsgcWebSocketServer, it connects and shows in the log connected, however is not transmitting or receiving any messages.

It would be greatly apreciated if anyone has solution for this.

regards
Mogzy
·
4 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Could you provide more information about this behavior? Messages received by server are handled by OnMessage event and server sends messages using Writedata or Broadcast methods.

Which sgcWebsockets version do you try? And which IDE?
·
4 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi
I am using XE10.2 and UniGui build 1.90.0.1517.
following is a test code. I get a message in the logfile that it is connected but nothing is sent or received by the socket.

please find attached a test project.
·
4 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
After reviewing your sample, I see that there is no code to send any message from Unigui to sgcWebSockets server and this must be implemented from Unigui side. Some Unigui customers have implemented their own scripts using websocket as protocol.

If you open a Web Browser session to following url link:

http://127.0.0.1:8189/sgcWebSockets.html

You can test websocket protocol in your sample. If you press Open and then Send button, you will receive a message from webbrowser in your Application.
·
4 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post