Fixing bug in WebSockets impl.