register Message Type
public static void registerMessageType(List<Class<? extends MessageContent>> messageContentClassList)
Batch register custom message types
Call this method to register custom messages after initialization and before connection.
Parameters
message Content Class List
List of custom message classes. Each item in the list must inherit from MessageContent.
@Deprecated()
Deprecated
Register custom message types
Call this method after initialization but before connecting to register custom messages.
Deprecated
This method is deprecated. Please use registerMessageType instead.
Parameters
message Content Class
The class of the custom message, which must inherit from .