From 735a044485856ade60edd0dd09354b793ab70cd8 Mon Sep 17 00:00:00 2001 From: Marcelo Pires Date: Wed, 5 Sep 2018 11:59:20 +0200 Subject: [PATCH] do not dispatch control messages --- transport/websocket/websocket.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/transport/websocket/websocket.go b/transport/websocket/websocket.go index 3596226..4000a25 100644 --- a/transport/websocket/websocket.go +++ b/transport/websocket/websocket.go @@ -7,6 +7,7 @@ import ( "github.com/thesyncim/faye/transport" "log" "strconv" + "strings" "sync/atomic" ) @@ -154,8 +155,11 @@ func (w *Websocket) Subscribe(subscription string, onMessage func(message *messa if err != nil { return err } - + //hack msg := payload[0] + if strings.HasPrefix(msg.Channel, "/meta") { + continue //todo update introspect message and update state + } onMessage(&msg) } return nil