aboutsummaryrefslogtreecommitdiffstats
path: root/websocket/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'websocket/client.go')
-rw-r--r--websocket/client.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/websocket/client.go b/websocket/client.go
index d961816e8..db2c8e5c9 100644
--- a/websocket/client.go
+++ b/websocket/client.go
@@ -50,8 +50,8 @@ func (c *Client) Conn() *ws.Conn {
return c.ws
}
-func (c *Client) Write(data interface{}, seed int) {
- msg := &Message{Seed: seed, Data: data}
+func (c *Client) Write(data interface{}, id int) {
+ msg := &Message{Id: id, Data: data}
select {
case c.ch <- msg:
default:
@@ -73,7 +73,6 @@ func (c *Client) Listen() {
// Listen write request via chanel
func (c *Client) listenWrite() {
- wslogger.Debugln("Listening write to client")
for {
select {
@@ -93,7 +92,6 @@ func (c *Client) listenWrite() {
// Listen read request via chanel
func (c *Client) listenRead() {
- wslogger.Debugln("Listening read from client")
for {
select {