Jump to content

Simple WebSocket Client Server demo


stas

Recommended Posts

Server side:

You can put your create code in ServerModule's OnBeforeInit,OnCreate or OnServerStartup event section ,and destroy code in OnDestroy event section.

Client side:

Set  your UniWebSocket.Url property ='ws://localhost:port/whatever'.

btw:

mORMot1  example 31 include a 'Project31SimpleEchoServer.html' file , try to read Project31WinHTTPEchoServer.dpr to understand how to use this file. 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...