On Message Received

On Message Received

Called whenever a peer has received a message. Connect a Bind to On Message Received delegate node to handle this event for the specified room.


There might be issues if you create the event manually. Instead, drop a Bind to On Media Removed node into the blueprint, drag out from Event until you see the red line. Then release the mouse button and in the drop down choose Add Custom Event. Unreal will create the correct event for you then.


DelegatedelegateBind to a Bind to On Message Received delegate node to get this event triggered when another peer sent a message.


Peer IdintegerThe id of the peer that joined the room. This is the self peer id, i.e. the peer id of the local player.
DataArray of byteThe message payload data as an array of bytes.
RoomRoom Object ReferenceThe Room object reference the message came from.