Add ErrRejectPacket error to abandon packet processing from OnMessageProcess

This commit is contained in:
mochi
2022-03-31 17:52:40 +01:00
parent 8acb182820
commit 7b9bc844c1

View File

@@ -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")