SocketCluster / socketcluster-client

JavaScript client for SocketCluster
MIT License
290 stars 92 forks source link

If trying to destroy a channel that doesn't exist using socket.destroyChannel, throw clean error or handle gracefully #112

Closed jondubois closed 6 years ago

jondubois commented 6 years ago

Now it throws an error about trying to call unwatch function on undefined. We need to handle this consistently with the socket.unsubscribe function and others - At the moment they don't throw an error if channel doesn't exist.

jondubois commented 6 years ago

Also see https://github.com/SocketCluster/socketcluster/issues/276

jondubois commented 6 years ago

Done.