SocketCluster / socketcluster-client

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

How to use "subscribeWildcard" instead of "subscribe" ? #148

Closed sahul360 closed 1 year ago

sahul360 commented 1 year ago

I am always getting error while using the things like below

const socket = socketCluster.connect({ / socketCluster configuration / });

socket.subscribeWildcard('my-channel.*').watch((data) => { console.log('Received data on wildcard channel', data); });

error : TypeError: socket.subscribeWildcard is not a function

maarteNNNN commented 1 year ago

subscribeWildcard doesn't exist. All methods are listed here.