Skip to content

Commit

Permalink
fix #102 (#103)
Browse files Browse the repository at this point in the history
Co-authored-by: xiejie <[email protected]>
  • Loading branch information
heliosgo and xiejie authored Jan 10, 2024
1 parent bf9f838 commit ad0f28b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit ad0f28b

Please sign in to comment.