logux_rails icon indicating copy to clipboard operation
logux_rails copied to clipboard

Wrong output on unkown channel

Open ai opened this issue 6 years ago • 3 comments

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

ai avatar Apr 05 '19 17:04 ai

Hi @ai Seems it works as expected, here are the test describing the case Let's check together at the evening :)

dsalahutdinov avatar Apr 11 '19 11:04 dsalahutdinov

What is have_chunk? I can’t google docs

ai avatar Apr 11 '19 15:04 ai

Here is a way to reproduce:

  1. Remove prices channel policy in Amplifr.
  2. Reload page.
  3. Look at Amplifr Logux log. You will see unknown response error. In Rails log a found just ["unknownChannel", …] instead of [["unknownChannel", …]].

ai avatar Apr 11 '19 16:04 ai