socket.io integration

emit and broadcasting