Peter Dunkley writes:
There is an example websocket.cfg in the examples directory in Git. Have you tried using this?
peter,
regarding the example, i noticed today that i had to make a small change to it in order to cope with hhtp get from my firefox browser:
if ($hdr(Upgrade)=~"websocket" && $hdr(Connection)=~"Upgrade" && $rm=~"GET") {
=>
if (($hdr(Upgrade) == "websocket") && in_list("Upgrade", $hdr(Connection), ",") && ($rm == "GET")) {
this is because body of Connection header had also another value in addition to Upgrade.
-- juha