Socket - Namespace - Room(Channel)
- socket - client
- id
- handshake
- time
- address
- headers
- io - clients
Redis session share 로 멀티 인스턴스 공유 구현하기도
Socket IO Notion
Socket IO Usages
Funny demo chat page
Socket.IO - Chat
https://socketio-chat-h9jt.herokuapp.com/View source code
https://socket.io/demos/chat
Socket.io Full Usage
Send response to all clients except sender
Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share your research! Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our tips on writing great answers.
https://stackoverflow.com/questions/10058226/send-response-to-all-clients-except-sender
Socket.io Emit Sheet
Emit cheatsheet
io.on('connect', onConnect);function onConnect(socket){ // sending to the client socket.emit('hello', 'can you hear me?', 1, 2, 'abc'); // sending to all clients except sender socket.broadcas
https://socket.io/docs/emit-cheatsheet/
websocket, socket.io를 이용한 양방향 통신
웹 브라우저에서 양방향 통신을 가능하게 해주는 websocket, socket.io에 대해 공부한 내용에 대하여 정리했습니다. 웹 브라우저 에서의 양방향 통신 기존 웹페이지에서 사용하는 http 프로토콜은 요청/응답 패러다임이기에 클라이언트에서 요청을 보내야만 그에 대한 응답을 받습니다. 옛날 홈페이지의 경우에는 동적인 홈페이지가 거의 없어서 큰 문제가 없었으나 동적인 기능이 많이 요구가 됩니다.
http://www.secmem.org/blog/2019/08/17/websocket-socketio/

Socket.IO
SOCKET.IO 2.0 IS HERE FEATURING THE FASTEST AND MOST RELIABLE REAL-TIME ENGINE ~/Projects/tweets/index.js var io = require('
https://socket.io/

socket.io와 websocket의 차이점
WebSocket 및 Socket.IO에 관한 몇 가지 일반적인 오해가 있습니다. 첫 번째 오해는 Socket.IO를 사용하는 것이 WebSocket을 사용하는 것보다 훨씬 쉽다는 것입니다. 아래 예를 참조하십시오. 두 번째 오해는 WebSocket이 브라우저에서 널리 지원되지 않는다는 것입니다. 자세한 내용은 아래를 참조하십시오. 세 번째 오해는 Socket.IO가 오래된 브라우저에서 연결을 다운 그레이드한다는 것입니다.
https://www.it-swarm.dev/ko/node.js/socketio%EC%99%80-websocket%EC%9D%98-%EC%B0%A8%EC%9D%B4%EC%A0%90/1067384250/

Seonglae Cho