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-06-10 12:05:27 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
03ed220b46d5fa643fca92a1162ce2b648045879
03ed220b
1 parent
d2f4f002
테스트 방 제거
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
server/Server.ts
server/Server.ts
View file @
03ed220
...
...
@@ -16,16 +16,12 @@ export class Server {
const
server
=
createServer
(
app
);
this
.
io
=
new
socketIo
.
Server
(
server
,
{
cors
:
{
origin
:
'*'
}
origin
:
"*"
,
}
,
});
const
roomManager
=
new
RoomManager
();
roomManager
.
create
(
"테스트 방 #1"
,
8
);
roomManager
.
create
(
"테스트 방 #2"
,
4
);
roomManager
.
create
(
"테스트 방 #3"
,
2
);
this
.
io
.
on
(
"connection"
,
(
socket
)
=>
{
new
Connection
(
new
SocketIoWrapper
(
socket
),
roomManager
);
});
...
...
Please
register
or
login
to post a comment