@epicgames-ps/lib-pixelstreamingcommon-ue5.5
@epicgames-ps/lib-pixelstreamingcommon-ue5.5 / Messages/message_helpers / createMessage
createMessage(
messageType,params?):BaseMessage
Defined in: Messages/message_helpers.ts:14
A helper for creating signalling messages. Takes in optional given parameters and includes them in a message object with the 'type' field set properly for the message type supplied.
IMessageType<BaseMessage>
A message type from MessageRegistry that indicates the type of message to create.
object
An optional object whose fields are added to the newly created message.
The resulting message object.