websocket code fix, https://github.com/valenok/mongoose/pull/146