netbits.handler.handlesMessage¶
- netbits.handler.handlesMessage(message_type: Type[StructuredPacket])[source]¶
Decorator to mark a method as a handler for a specific message type.
- Parameters:
message_type (Type[StructuredPacket]) – The type of the message that the method handles.
- Returns:
The decorator for the method.