[Node.js] 실시간 멀티 채팅 만들기 1탄 [Node.js] 실시간 멀티 채팅 만들기 2탄 대망의 3탄 서버에 사용자가 보낸 문자열을 받았으니 이제 뿌려주기만 하면 된다💪 socket.io에서는 연결된 모든 소캣에 이벤트를 발생시키도록 하는 해당 함수를 사용할 것이다. 함수명도 외우기 쉽다. ( emit : 방출하다 ) io.emit('some event', { someProperty: 'some value', otherProperty: 'other value' }); 해당 이벤트를 메세지 받고 발생 해주어야 하니 2편에서 등록했던 chat message 이벤트 발생시 메세지를 방출 하도록 해놨다. socket.on('chat message', function(msg){ console.log('me..