Fixed a bug of WebSocketError import