small fixes to indxjs websocket handling