func (c *Client) RegisterEvent(event string) {
	if c.ListensForEvent(event) != -1 {
		return
	}

	c.eventsMutex.Lock()
	c.events = append(c.events, event)
	c.eventsMutex.Unlock()
}
// RegisterEvent tells the socket layer which event types are of interest. Any event that are not registered
// will be discarded once the socket info is extracted from the event.
RegisterEvent tells the socket layer which event types are of interest. Any event that are not registered
will be discarded once the socket info is extracted from the event.
// RegisterEvent tells the socket layer which event types are of interest . Any event that are not registered // will be discarded once the socket info is extracted from the event .
func (c *Client) RegisterEvent(event string) {
	if c.ListensForEvent(event) != -1 {
		return
	}
	c.eventsMutex.Lock()
	c.events = append(c.events, event)
	c.eventsMutex.Unlock()
}
func ( c * Client ) RegisterEvent ( event string ) { if c . ListensForEvent ( event ) != - 1 { return } c . eventsMutex . Lock ( ) c . events = append ( c . events , event ) c . eventsMutex . Unlock ( ) }
RegisterEvent tells the socket layer which event types are of interest.
RegisterEvent tells the socket layer which event types are of interest .