thibauts / node-castv2-client

A Chromecast client based on the new (CASTV2) protocol
MIT License
648 stars 95 forks source link

add self to connect callback #76

Open DaafSamson opened 6 years ago

DaafSamson commented 6 years ago

I'm trying to use multiple clients to multiple chromecasts. It would be very handy (and very easy!) if the connect callback would contain a reference to the client. I achieved this by adding the 'self' object as argument to the 'callback()' call