diff --git a/client.go b/client.go index a41ee39..8358d59 100644 --- a/client.go +++ b/client.go @@ -139,6 +139,7 @@ func (c *Client) SetConn(conn *websocket.Conn, remoteAddress string) { c.conn = conn c.addr = remoteAddress c.closeChan = make(chan bool, 1) + c.messageChan = make(chan *bytes.Buffer, 16) c.OnLookupCountry = func(client *Client) string { return unknownCountry } c.OnClosed = func(client *Client) {} c.OnMessageReceived = func(client *Client, data []byte) {}