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

Method OnPacketProcessed

hooks.go:93–93  ·  view source on GitHub ↗

triggers when packet bytes have been written to the client

(cl *Client, pk packets.Packet, err error)

Source from the content-addressed store, hash-verified

91 OnPacketEncode(cl *Client, pk packets.Packet) packets.Packet // modify a packet before it is byte-encoded and written to the client
92 OnPacketSent(cl *Client, pk packets.Packet, b []byte) // triggers when packet bytes have been written to the client
93 OnPacketProcessed(cl *Client, pk packets.Packet, err error) // triggers after a packet from the client been processed (handled)
94 OnSubscribe(cl *Client, pk packets.Packet) packets.Packet
95 OnSubscribed(cl *Client, pk packets.Packet, reasonCodes []byte)
96 OnSelectSubscribers(subs *Subscribers, pk packets.Packet) *Subscribers

Callers 3

TestHooksNonReturnsFunction · 0.65
processPacketMethod · 0.65
OnPacketProcessedMethod · 0.65

Implementers 1

HookBasehooks.go

Calls

no outgoing calls

Tested by 1

TestHooksNonReturnsFunction · 0.52