func (em *EventMeter) Start() error {
	if err := em.wsc.Start(); err != nil {
		return err
	}

	em.quit = make(chan struct{})
	go em.receiveRoutine()
	go em.disconnectRoutine()

	err := em.subscribe()
	if err != nil {
		return err
	}
	em.subscribed = true
	return nil
}
// Start boots up event meter.
Start boots up event meter.
// Start boots up event meter .
func (em *EventMeter) Start() error {
	if err := em.wsc.Start(); err != nil {
		return err
	}
	em.quit = make(chan struct{})
	go em.receiveRoutine()
	go em.disconnectRoutine()
	err := em.subscribe()
	if err != nil {
		return err
	}
	em.subscribed = true
	return nil
}
func ( em * EventMeter ) Start ( ) error { if err := em . wsc . Start ( ) ; err != nil { return err } em . quit = make ( chan struct { } ) go em . receiveRoutine ( ) go em . disconnectRoutine ( ) err := em . subscribe ( ) if err != nil { return err } em . subscribed = true return nil }
Start boots up event meter.
Start boots up event meter .