Fix endless loop in websocket client
Remove useless import