Builds for
1 pipeline
failed
in
1 minute 24 seconds
소켓 서버 주소 https로 변경
Showing
1 changed file
with
1 additions
and
1 deletions
| 1 | import React from "react"; | 1 | import React from "react"; |
| 2 | import { io } from "socket.io-client"; | 2 | import { io } from "socket.io-client"; |
| 3 | 3 | ||
| 4 | -export const socket = io(`http://${window.location.hostname}:3000/`); | 4 | +export const socket = io(`https://${window.location.hostname}:3000/`); |
| 5 | const SocketContext = React.createContext(socket); | 5 | const SocketContext = React.createContext(socket); |
| 6 | 6 | ||
| 7 | export const SocketProvider = SocketContext.Provider; | 7 | export const SocketProvider = SocketContext.Provider; | ... | ... |
-
Please register or login to post a comment