Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
bora-it
Commits
4361c312
Commit
4361c312
authored
Jul 28, 2021
by
Kim, Chaerin
Browse files
불필요 삭제
parent
52e6b843
Changes
2
Show whitespace changes
Inline
Side-by-side
client/src/components/Room/Screen.js
View file @
4361c312
...
@@ -31,12 +31,7 @@ const Screen = () => {
...
@@ -31,12 +31,7 @@ const Screen = () => {
};
};
useEffect
(()
=>
{
useEffect
(()
=>
{
let
newSocket
=
io
(
"
http://localhost:8080
"
,
{
let
newSocket
=
io
(
"
http://localhost:8080
"
);
withCredentials
:
true
,
extraHeaders
:
{
"
my-custom-header
"
:
"
abcd
"
,
},
});
let
localStream
;
let
localStream
;
newSocket
.
on
(
"
userEnter
"
,
(
data
)
=>
{
newSocket
.
on
(
"
userEnter
"
,
(
data
)
=>
{
createReceivePC
(
data
.
id
,
newSocket
);
createReceivePC
(
data
.
id
,
newSocket
);
...
...
server/app.js
View file @
4361c312
...
@@ -14,8 +14,6 @@ const io = new Server(server, {
...
@@ -14,8 +14,6 @@ const io = new Server(server, {
cors
:
{
cors
:
{
origin
:
"
http://localhost:3000
"
,
origin
:
"
http://localhost:3000
"
,
methods
:
[
"
GET
"
,
"
POST
"
],
methods
:
[
"
GET
"
,
"
POST
"
],
allowedHeaders
:
[
"
my-custom-header
"
],
credentials
:
true
,
},
},
});
});
app
.
use
(
express
.
json
());
app
.
use
(
express
.
json
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment