The error is happening because the server is not up to date with the current protocol.
I have made a new branch (rfc6455) where i have updated the server according to the new protocol. It is not very elegant as it is (which is why i haven't merged it into the default branch), but i works on my box so it might also work on yours.