it works better than without this. Without this, it'll break in some 10-20 seconds when browsers send a check frame. With this, there's an error reported but websocket connection is not closed even if there is an odd unknown frame.

In the long run there are still some other issues. This is going in the right direction, until full websocket support is implemented.