MCPcopy
hub / github.com/mochi-mqtt/server / OnDisconnect

Method OnDisconnect

hooks.go:88–88  ·  view source on GitHub ↗
(cl *Client, err error, expire bool)

Source from the content-addressed store, hash-verified

86 OnSessionEstablish(cl *Client, pk packets.Packet)
87 OnSessionEstablished(cl *Client, pk packets.Packet)
88 OnDisconnect(cl *Client, err error, expire bool)
89 OnAuthPacket(cl *Client, pk packets.Packet) (packets.Packet, error)
90 OnPacketRead(cl *Client, pk packets.Packet) (packets.Packet, error) // triggers when a new packet is received by a client, but before packet validation
91 OnPacketEncode(cl *Client, pk packets.Packet) packets.Packet // modify a packet before it is byte-encoded and written to the client

Callers 15

TestHooksNonReturnsFunction · 0.65
attachClientMethod · 0.65
loadClientsMethod · 0.65
OnDisconnectMethod · 0.65
TestOnDisconnectNoDBFunction · 0.65
TestOnDisconnectClosedDBFunction · 0.65
TestGcLoopFunction · 0.65
TestOnDisconnectNoDBFunction · 0.65
TestOnDisconnectClosedDBFunction · 0.65

Implementers 1

HookBasehooks.go

Calls

no outgoing calls