supports hybi version 8
masked is set if WebSocket is initiated as a client socket.