how to use socketio client forge component. can pls share the sample example.
Install the Forge Component
Search for "SocketIO Client" in the Forge.
Install it into your OutSystems application.
2. Add Dependencies
Open Manage Dependencies.
Import these client actions from the component:
SocketIO_Connect
SocketIO_Emit
SocketIO_On
SocketIO_Disconnect
3. Create Your Socket Events
In your screen’s OnReady action or a client event:
Call SocketIO_Connect
Provide the Server URL (e.g. https://your-server.com)
Then use SocketIO_On to listen for messages from the server.
Example:
EventName: "chat"
Callback: JavaScript block to process incoming data
4. Send Data to Server
Use SocketIO_Emit to send a message.
Payload: JSON or text to send