func (em *EventMeter) RegisterDisconnectCallback(f DisconnectCallbackFunc) {
	em.mtx.Lock()
	defer em.mtx.Unlock()
	em.disconnectCallback = f
}
// RegisterDisconnectCallback allows you to set disconnect callback.
RegisterDisconnectCallback allows you to set disconnect callback.
// RegisterDisconnectCallback allows you to set disconnect callback .
func (em *EventMeter) RegisterDisconnectCallback(f DisconnectCallbackFunc) {
	em.mtx.Lock()
	defer em.mtx.Unlock()
	em.disconnectCallback = f
}
func ( em * EventMeter ) RegisterDisconnectCallback ( f DisconnectCallbackFunc ) { em . mtx . Lock ( ) defer em . mtx . Unlock ( ) em . disconnectCallback = f }
RegisterDisconnectCallback allows you to set disconnect callback.
RegisterDisconnectCallback allows you to set disconnect callback .