SocketCluster / socketcluster-client

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

Add watchOnce() method #87

Open jondubois opened 6 years ago

jondubois commented 6 years ago

Add watchOnce() method to avoid accidentally watching a channel multiple times...

EDIT maybe it should be called something different because watchOnce sounds like it will only invoke the handler once... In fact it means 'attach once' but can trigger multiple times.