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 nameClose Web Socket: Close a specific connectionClose All Web Socket: Close all connectionsCheck Web Socket Connect: Check if a connection is establishedGet Web Socket Config: Retrieve config for a named connection
Send text and bind callbacks
Send WebSocket Message: Send a text messageBind 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.
