Defined in OmniClient.h

OmniClientRequestId omniClientSendMessage(OmniClientRequestId joinRequestId, struct OmniClientContent *content, void *userData, OmniClientSendMessageCallback callback)

Send a message to a channel.

joinRequestId is the return value from omniClientJoinChannel Sending a message before receiving an event does nothing because nobody will hear the message. Returns 0 in that case This function takes ownership of the content it calls content->free(content->buffer) when it’s finished with it (which may be some time in the future)


If this function is called after omniClientShutdown, kInvalidRequestId will be returned, and the callback will not be called.