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
Overnap
2021-06-05 22:53:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
99df0cc7f7248916ceadf269996d52bec68909d5
99df0cc7
1 parent
7a060cbb
Builds for 1 pipeline
failed
in 1 minute 13 seconds
서버 연결을 위한 리액트 포트 수정
Changes
2
Builds
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
web/package.json
web/src/contexts/SocketContext.ts
web/package.json
View file @
99df0cc
...
...
@@ -23,7 +23,7 @@
"web-vitals"
:
"^1.0.1"
},
"scripts"
:
{
"start"
:
"npm run twcss && react-scripts start"
,
"start"
:
"npm run twcss &&
set PORT=3001 &&
react-scripts start"
,
"build"
:
"npm run twcss && react-scripts build"
,
"test"
:
"react-scripts test"
,
"eject"
:
"react-scripts eject"
,
...
...
web/src/contexts/SocketContext.ts
View file @
99df0cc
import
React
from
'react'
;
import
{
io
}
from
'socket.io-client'
;
export
const
socket
=
io
(
'http://localhost/'
);
export
const
socket
=
io
(
'http://localhost
:3000
/'
);
const
SocketContext
=
React
.
createContext
(
socket
);
export
const
SocketProvider
=
SocketContext
.
Provider
;
...
...
Please
register
or
login
to post a comment