mmserver

Sever/Node.js 2019. 7. 10. 14:25
반응형

https://github.com/Frankenmint/mmserver/tree/66fa53a583221d2dac53ec4a2de5a2631b2a9095

 

Frankenmint/mmserver

match-making server demo using node.js and socket.io - Frankenmint/mmserver

github.com

https://www.codementor.io/codementorteam/socketio-player-matchmaking-system-pdxz4apty

 

Build a Multi-user App using Socket.io (Part 1): Lightweight Chat App | Codementor

For today's exercise, we will be building a simple game engine into a Socket.io chat demo. This engine will create game objects for connected users and emit them to other users.

www.codementor.io

https://socket.io/docs/server-api/#socket-rooms

 

Socket.IO — Server API

ServerExposed by require('socket.io'). new Server(httpServer[, options]) httpServer (http.Server) the server to bind to. options (Object) Works with and without new: const io = require('socke

socket.io


1.Just u and the server (socket.emit)
2.A message from point to everyone, expect u (socket.broadcast.emit)
3.Everyone gets the message, u, server, and all broadcast users (io.emit)

반응형
: