diff --git a/conn.go b/conn.go index 4f6c093..eb6ff01 100644 --- a/conn.go +++ b/conn.go @@ -418,7 +418,7 @@ func (c *Conn) handleMessage(msg Message) error { return ErrInvalidPayload } - if msg.IsNative && c.allowNativeMessages { + if msg.IsNative && c.shouldHandleOnlyNativeMessages { ns := c.Namespace("") return ns.events.fireEvent(ns, msg) }