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 17:14:57 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a9e6b4d5b9c465ae9ca715f1cf1abc3008350e56
a9e6b4d5
1 parent
de3dded0
Builds for 1 pipeline
failed
in 1 minute 24 seconds
소켓 서버 주소 https로 변경
Changes
1
Builds
3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
web/src/contexts/SocketContext.ts
web/src/contexts/SocketContext.ts
View file @
a9e6b4d
import
React
from
"react"
;
import
{
io
}
from
"socket.io-client"
;
export
const
socket
=
io
(
`http://
${
window
.
location
.
hostname
}
:3000/`
);
export
const
socket
=
io
(
`http
s
://
${
window
.
location
.
hostname
}
:3000/`
);
const
SocketContext
=
React
.
createContext
(
socket
);
export
const
SocketProvider
=
SocketContext
.
Provider
;
...
...
Please
register
or
login
to post a comment