logux_rails
logux_rails copied to clipboard
Wrong output on unkown channel
If Logux sends { type: 'logux/susbcribe', channel: 'unknown' }, Rails will answer:
Write to Logux response: ["unknownChannel","1554484116313 380:R7BNGAP5:Pjoz3bdE 0"]
Write to Logux response: ]
But Logux wait for [["unknownChannel", …]], array in array.
/cc @dsalahutdinov
Hi @ai Seems it works as expected, here are the test describing the case Let's check together at the evening :)
What is have_chunk? I can’t google docs
Here is a way to reproduce:
- Remove
priceschannel policy in Amplifr. - Reload page.
- Look at Amplifr Logux log. You will see unknown response error. In Rails log a found just
["unknownChannel", …]instead of[["unknownChannel", …]].