Using Pubnub's Socket.io implementation, how does one disconnect from a channel (or at all)?
I set up my connection like this:
socket = io.connect "http://pubsub.pubnub.com",
channel: "some-channel"
publish_key: "..."
subscribe_key: "..."
But when I try to disconnect like this (the way you do when using normal Socket.io):
socket.disconnect()
I get error messages like this:
Uncaught TypeError: Cannot read property 'channel' of undefined