func (c *Client) ListensForEvent(event string) int {
	c.eventsMutex.RLock()
	defer c.eventsMutex.RUnlock()
	var i int
	for i = range c.events {
		if event != "*" && "*" == c.events[i] {
			return -2 // TODO
		} else if event == c.events[i] {
			return i
		}
	}

	return -1
}
// ListensForEvent checks if a given event type has been registered for further processing.
ListensForEvent checks if a given event type has been registered for further processing.
// ListensForEvent checks if a given event type has been registered for further processing .
func (c *Client) ListensForEvent(event string) int {
	c.eventsMutex.RLock()
	defer c.eventsMutex.RUnlock()
	var i int
	for i = range c.events {
		if event != "*" && "*" == c.events[i] {
			return -2 
		} else if event == c.events[i] {
			return i
		}
	}
	return -1
}
func ( c * Client ) ListensForEvent ( event string ) int { c . eventsMutex . RLock ( ) defer c . eventsMutex . RUnlock ( ) var i int for i = range c . events { if event != " " && " " == c . events [ i ] { return - 2 } else if event == c . events [ i ] { return i } } return - 1 }
ListensForEvent checks if a given event type has been registered for further processing.
ListensForEvent checks if a given event type has been registered for further processing .
// TODO