centrifugal / rubycent

Ruby gem to communicate with Centrifugo HTTP API
MIT License
20 stars 16 forks source link

JS token generation with info #2

Closed gauravtiwari closed 9 years ago

gauravtiwari commented 9 years ago

Hey @FZambia

Another issue is when generating client JS token using token_for method, the subscription works without info, but when I add info JSON string the channel isn't getting subscribed and throwing "disconnected message".

screen shot 2015-08-18 at 13 29 11

Thanks

arrowcircle commented 9 years ago

Please post some examples of info json string

gauravtiwari commented 9 years ago

@arrowcircle fixed this one too, it was due to wrong JSON generation. I think we need to put some examples here related to ruby code. I will update docs.