Use firebase websocket api rather than json
Indentation consitency