Commit 4361c312 authored by Kim, Chaerin's avatar Kim, Chaerin
Browse files

불필요 삭제

parent 52e6b843
......@@ -31,12 +31,7 @@ const Screen = () => {
};
useEffect(() => {
let newSocket = io("http://localhost:8080", {
withCredentials: true,
extraHeaders: {
"my-custom-header": "abcd",
},
});
let newSocket = io("http://localhost:8080");
let localStream;
newSocket.on("userEnter", (data) => {
createReceivePC(data.id, newSocket);
......
......@@ -14,8 +14,6 @@ const io = new Server(server, {
cors: {
origin: "http://localhost:3000",
methods: ["GET", "POST"],
allowedHeaders: ["my-custom-header"],
credentials: true,
},
});
app.use(express.json());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment