# Interfaces
Clientlike is an interface for Clients and client-like objects that are able to describe their client/listener IDs and remote address.
# Type aliases
OnConnect is called when a client successfully connects to the broker.
OnDisconnect is called when a client disconnects to the broker.
OnError is called when errors that will not be passed to OnDisconnect are handled by the server.
OnMessage function is called when a publish message is received.
OnProcessMessage is called when a publish message is received, allowing modification of the packet data after ACL checking has occurred but before any data is evaluated for processing - e.g.
OnSubscribe is called when a new subscription filter for a client is created.
OnUnsubscribe is called when an existing subscription filter for a client is removed.
Packets is an alias for packets.Packet.