ryanb / private_pub

Handle pub/sub messaging through private channels in Rails using Faye.
MIT License
864 stars 228 forks source link

unsubscribe_to #114

Closed thiaguerd closed 8 years ago

thiaguerd commented 9 years ago

i need unsubscribe_to or something similar

rb: subscribe_to "/a/b" make js: PrivatePub.sign({"server":"a","timestamp":0,"channel":"/a/b","signature":"y"});

rb: unsubscribe_to "/a/b" make js: PrivatePub.signout({"server":"a","timestamp":0,"channel":"/a/b","signature":"y"});

Rdbaker commented 9 years ago

https://github.com/ryanb/private_pub/blob/master/app/assets/javascripts/private_pub.js#L82 might be what you're looking for

eduardobarbiero commented 8 years ago

Rdbaker, thanks! This works fine.

thiaguerd commented 8 years ago

solved