RFC 6455/1.9 states: The client can request that the server use a specific subprotocol by including the |Sec-WebSocket-Protocol| field in its handshake. If it is specified, the server needs to include the same field and one of the selected subprotocol values in its response for the connection to be established.
Given this, should Mojo even send a response? Or if it does, should it at least warn “failed to negotiate subprotocol; sending handshake response anyway”? -FG > On Sep 15, 2020, at 04:21, Mikhail <m.nased...@gmail.com> wrote: > > > Chrome browser absolutely described the error in that it sent a subprotocol > header ('null' for that case). So solve > > $ws->tx->with_protocols('binary', 'null'); > > Let binary subprotocol is present also. > понедельник, 14 сентября 2020 г. в 17:29:31 UTC+5, fel...@felipegasper.com: >> That seems an odd error from Chrome, if that’s the fix .. was the browser >> sending a subprotocol in the handshake? >> >> -F >> >>>> On Sep 14, 2020, at 07:37, Mikhail <m.nas...@gmail.com> wrote: >>>> >>> Thanks! Forever ♥ Mojolicious! >> >>> >>> >>> понедельник, 14 сентября 2020 г. в 13:41:46 UTC+5, Sebastian Riedel: >>>> Then you need to negotiate a subprotocol. >>>> >>>> -- >>>> sebastian >>> >> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Mojolicious" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to mojolicious...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/mojolicious/68624663-2baf-4bc2-a24e-b8fc135ff15dn%40googlegroups.com. > > -- > You received this message because you are subscribed to the Google Groups > "Mojolicious" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to mojolicious+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mojolicious/e4166da1-91ce-40e3-810b-2511725ad8b1n%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/A14CC5C0-FA85-45B6-9334-DDF35FAD175B%40felipegasper.com.