func (c *Client) handleIncomingMessages() {
	message := new(Message)
	go func() {
		for {
			err := c.connection.ReadJSON(&message)
			if err != nil {
				if websocket.IsUnexpectedCloseError(err, websocket.CloseGoingAway, websocket.CloseAbnormalClosure) {
					log.Printf("Error: %#v", err)
				}
				break
			}

			c.responses <- message
		}
	}()
}
// handleIncomingMessages reads incomings JSON messages from the websocket connection and
// feeds them into the responses channel
handleIncomingMessages reads incomings JSON messages from the websocket connection and
feeds them into the responses channel
// handleIncomingMessages reads incomings JSON messages from the websocket connection and // feeds them into the responses channel
func (c *Client) handleIncomingMessages() {
	message := new(Message)
	go func() {
		for {
			err := c.connection.ReadJSON(&message)
			if err != nil {
				if websocket.IsUnexpectedCloseError(err, websocket.CloseGoingAway, websocket.CloseAbnormalClosure) {
					log.Printf("Error: %#v", err)
				}
				break
			}
			c.responses <- message
		}
	}()
}
func ( c * Client ) handleIncomingMessages ( ) { message := new ( Message ) go func ( ) { for { err := c . connection . ReadJSON ( & message ) if err != nil { if websocket . IsUnexpectedCloseError ( err , websocket . CloseGoingAway , websocket . CloseAbnormalClosure ) { log . Printf ( " " , err ) } break } c . responses <- message } } ( ) }
handleIncomingMessages reads incomings JSON messages from the websocket connection and
feeds them into the responses channel
handleIncomingMessages reads incomings JSON messages from the websocket connection and feeds them into the responses channel