mirror of
https://github.com/mochi-mqtt/server.git
synced 2025-10-27 01:50:38 +08:00
Add ErrRejectPacket error to abandon packet processing from OnMessageProcess
This commit is contained in:
@@ -41,6 +41,9 @@ var (
|
||||
// ErrInvalidTopic indicates that the specified topic was not valid.
|
||||
ErrInvalidTopic = errors.New("cannot publish to $ and $SYS topics")
|
||||
|
||||
// ErrRejectPacket indicates that a packet should be dropped instead of processed.
|
||||
ErrRejectPacket = errors.New("packet rejected")
|
||||
|
||||
ErrClientDisconnect = errors.New("Client disconnected")
|
||||
ErrClientReconnect = errors.New("Client attemped to reconnect")
|
||||
ErrServerShutdown = errors.New("Server is shutting down")
|
||||
|
||||
Reference in New Issue
Block a user