Ugly temp websocket implementation prototype