Toggle navigation
Toggle navigation
This project
Loading...
Sign in
강동현
/
nodejs-game
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
강동현
2021-05-25 16:38:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8e3d12f3fd75bd4d34397e2b7babe621bc826055
8e3d12f3
1 parent
d2a3da46
테스트를 위한 더미 방 추가
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
server/index.ts
server/index.ts
View file @
8e3d12f
...
...
@@ -13,6 +13,10 @@ const io = new socketIo.Server(server);
const
handler
=
new
SocketHandler
();
const
roomManager
=
new
RoomManager
();
roomManager
.
create
(
"테스트 방 #1"
,
8
);
roomManager
.
create
(
"테스트 방 #2"
,
4
);
roomManager
.
create
(
"테스트 방 #3"
,
2
);
io
.
on
(
"connection"
,
(
socket
)
=>
{
handler
.
connected
(
socket
);
});
...
...
Please
register
or
login
to post a comment