SimpleWebSocketDocumentation

Manage WebSocket Connections and Messages in Blueprint

The GameInstance manages these static functions. Use the configured connection name when calling them from a Blueprint.

Connect, inspect, and close

  • Connect Web Socket: Connect to a WebSocket by name
  • Close Web Socket: Close a specific connection
  • Close All Web Socket: Close all connections
  • Check Web Socket Connect: Check if a connection is established
  • Get Web Socket Config: Retrieve config for a named connection

Send text and bind callbacks

  • Send WebSocket Message: Send a text message
  • Bind Web Socket Message: Bind a Blueprint event to receive messages (supports multiple callbacks)
  • Unbind Web Socket Message: Unbind a message event

Blueprint example

Connect using the configuration name, or skip that step if the connection opened automatically. Check its state, bind a receive event, and send a test message. When you finish, use the same name to close only that connection.

Blueprint Example