fixed websocket bug: handle only text messages