code: func (c *SocketConnection) SendEvent(eventHeaders []string) error {
  	if len(eventHeaders) <= 0 {
  		return fmt.Errorf(ECouldNotSendEvent, len(eventHeaders))
  	}
  
  	// lock mutex to prevent event headers from conflicting
  	c.mtx.Lock()
  	defer c.mtx.Unlock()
  
  	_, err := io.WriteString(c, "sendevent ")
  	if err != nil {
  		return err
  	}
  
  	for _, eventHeader := range eventHeaders {
  		_, err := io.WriteString(c, eventHeader)
  		if err != nil {
  			return err
  		}
  
  		_, err = io.WriteString(c, "\r\n")
  		if err != nil {
  			return err
  		}
  
  	}
  
  	_, err = io.WriteString(c, "\r\n")
  	if err != nil {
  		return err
  	}
  
  	return nil
  }
docs: // SendEvent - Will loop against passed event headers