Tuesday, 10 December 2019
  5 Replies
  4.3K Visits
  Subscribe
Hi,
Does the WebSockets Component support UniGui? if yes do you have an example?
4 years ago
·
#128
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
·
#150
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
·
#151
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
·
#152
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.
Attachments (1)
4 years ago
·
#153
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.
  • Page :
  • 1
There are no replies made for this post yet.
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below.
Supported: gif,jpg,png,jpeg,zip,rar,pdf
· Insert · Remove
  Upload Files (Maximum 10MB)