diff --git a/client.coffee b/client.coffee index 0ffb721..200cad9 100644 --- a/client.coffee +++ b/client.coffee @@ -32,7 +32,7 @@ class Client else if msg.cmd == 'auth' and msg.data @.authUser(msg.data) else if msg.cmd == 'subscribe' and msg.routing_key - if msg.routing_key.indexOf("live_notifications") == 0 + if @.auth and msg.routing_key.indexOf("live_notifications") == 0 userId = signing.getUserId(@.auth.token) @.addSubscription("live_notifications.#{userId}") else