Type

data class Type(val sourceServerType: SourceServerType, val messageType: MessageType)

Defines a union between source server type and the message's type. Based on this union the consumer can decide the serialization strategy.

Serialization strategy

There are 2 serialization strategies that conclude if message is type PluginMessage or NonSignalMessage.

Note that signal-compliant messages are represented through message's types except HUB_MESSAGE and REJECTED. They can also, represented through PluginMessage model.

Constructors

Link copied to clipboard
constructor(sourceServerType: SourceServerType, messageType: MessageType)

Properties

Link copied to clipboard
Link copied to clipboard