Skip to content

Commit

Permalink
OnClientError comment - clarify that this can be called multiple times.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Brittan committed Nov 13, 2024
1 parent 7474a8a commit 927de5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paho/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ type (
PacketTimeout time.Duration
// OnServerDisconnect is called only when a packets.DISCONNECT is received from server
OnServerDisconnect func(*Disconnect)
// OnClientError is for example called on net.Error
// OnClientError is for example called on net.Error. Note that this may be called multiple times and may be
// called following a successful `Disconnect`. See autopaho.errorHandler for an example.
OnClientError func(error)
// PublishHook allows a user provided function to be called before
// a Publish packet is sent allowing it to inspect or modify the
Expand Down

0 comments on commit 927de5f

Please sign in to comment.