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 connecting.
Since
5.0.0
Parameters
message Content Class List
A 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 and before connecting to register custom messages.
Since
5.0.0
Deprecated
This method is deprecated. Please use registerMessageType instead.
Parameters
message Content Class
The class of the custom message, which must inherit from .