The API currently exposes those two methods that should not be used (as the docs also state), which is confusing. It also clutters the API of the Client.
Better create typedefs like
type (
clientHandler Client
channelHandler Channel
)
then move the methods onto these types and where you previously passed instances c as handlers, you pass (*clientHandler)(c) or (*channelHandler)(c).
The API currently exposes those two methods that should not be used (as the docs also state), which is confusing. It also clutters the API of the
Client
.Better create typedefs like
then move the methods onto these types and where you previously passed instances
c
as handlers, you pass(*clientHandler)(c)
or(*channelHandler)(c)
.