16
Views
1
Comments
[Reactive SocketIO Client] how to use socketio client forge component. can pls share the sample example.
reactive-socketio-client
Reactive icon
Forge asset by Arley Silveira
Application Type
Reactive

how to use socketio client forge component. can pls share the sample example.

2025-09-25 14-38-22
Lokesh Kumar Yadav

 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.

    • EventName: "chat"

    • Payload: JSON or text to send

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.