Public Member Functions | |
| bool | SendMessage (const EAccelByteMessagingTopic Topic) |
| Send message without payload to the messaging system which later will be notified to the subscribers. | |
| template<typename T> | |
| bool | SendMessage (const EAccelByteMessagingTopic Topic, const T &Payload) |
| Send message with payload to the messaging system which later will be notified to the subscribers. | |
| bool | SendMessage (const EAccelByteMessagingTopic Topic, const FString &Payload) |
| Send message with string payload to the messaging system which later will be notified to the subscribers. | |
| FDelegateHandle | SubscribeToTopic (const EAccelByteMessagingTopic &Topic, const FOnMessagingSystemReceivedMessage &Delegate) |
| Subscribe to particular topic in messaging system. | |
| bool | UnsubscribeFromTopic (const EAccelByteMessagingTopic &Topic, const FDelegateHandle &DelegateHandle) |
| Unsubscribe to a topic in messaging system. | |
| void | UnsubscribeAll () |
| Unsubscribe all subscribers from messaging system. | |
| int32 | GetAllSubscribersCount () |
| Get the number of all subscribers to all of the topics. | |
| int32 FAccelByteMessagingSystem::GetAllSubscribersCount | ( | ) |
Get the number of all subscribers to all of the topics.
| bool FAccelByteMessagingSystem::SendMessage | ( | const EAccelByteMessagingTopic | Topic | ) |
Send message without payload to the messaging system which later will be notified to the subscribers.
| Topic | The topic of the message |
| bool FAccelByteMessagingSystem::SendMessage | ( | const EAccelByteMessagingTopic | Topic, |
| const FString & | Payload ) |
Send message with string payload to the messaging system which later will be notified to the subscribers.
| Topic | The topic of the message |
| Payload | The payload of the message. |
|
inline |
Send message with payload to the messaging system which later will be notified to the subscribers.
| Topic | The topic of the message |
| Payload | The payload of the message. It should be USTRUCT type. |
| FDelegateHandle FAccelByteMessagingSystem::SubscribeToTopic | ( | const EAccelByteMessagingTopic & | Topic, |
| const FOnMessagingSystemReceivedMessage & | Delegate ) |
Subscribe to particular topic in messaging system.
| Topic | The topic to subscribe, list of available topic is in EAccelByteMessagingTopic |
| Delegate | The delegate that will be executed when new message for this topic arrived |
| bool FAccelByteMessagingSystem::UnsubscribeFromTopic | ( | const EAccelByteMessagingTopic & | Topic, |
| const FDelegateHandle & | DelegateHandle ) |
Unsubscribe to a topic in messaging system.
| Topic | The topic to unsubscribe |
| DelegateHandle | The delegate handle returned by the SubscribeToTopic method |