bug fix #1
https://github.com/morozovsk/websocket/issues/1