add socket.io subscription and initial server push