add socket.io client to append to mongodb