func (c *Client) RemoveEvent(event string) {
	var i int
	if i = c.ListensForEvent(event); i < 0 {
		return
	}

	c.eventsMutex.Lock()
	c.events[i] = c.events[len(c.events)-1]
	c.events = c.events[:len(c.events)-1]
	c.eventsMutex.Unlock()
}
// RemoveEvent removes an event type from the registry. This will cause the event type to be discarded
// by the socket layer.
RemoveEvent removes an event type from the registry. This will cause the event type to be discarded
by the socket layer.
// RemoveEvent removes an event type from the registry . This will cause the event type to be discarded // by the socket layer .
func (c *Client) RemoveEvent(event string) {
	var i int
	if i = c.ListensForEvent(event); i < 0 {
		return
	}
	c.eventsMutex.Lock()
	c.events[i] = c.events[len(c.events)-1]
	c.events = c.events[:len(c.events)-1]
	c.eventsMutex.Unlock()
}
func ( c * Client ) RemoveEvent ( event string ) { var i int if i = c . ListensForEvent ( event ) ; i < 0 { return } c . eventsMutex . Lock ( ) c . events [ i ] = c . events [ len ( c . events ) - 1 ] c . events = c . events [ : len ( c . events ) - 1 ] c . eventsMutex . Unlock ( ) }
RemoveEvent removes an event type from the registry.
RemoveEvent removes an event type from the registry .