Possible fix
This commit is contained in:
parent
ed0f296c89
commit
dff2778902
2 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
import moment from "https://jspm.dev/moment"
|
||||
import { io } from "https://cdn.socket.io/4.3.2/socket.io.esm.min.js"
|
||||
const socket = io(":3000")
|
||||
const socket = io()
|
||||
const messageButton = document.querySelector("#send")
|
||||
const menuButton = document.querySelector("#menu")
|
||||
const nameButton = document.querySelector("#name")
|
||||
|
|
|
@ -6,11 +6,13 @@ const io = require("socket.io")(server, {
|
|||
origin: [
|
||||
"http://127.0.0.1:3000",
|
||||
"http://192.168.1.226:3000",
|
||||
"http://192.168.1.226:3000",
|
||||
"https://chat.henryhiles.com",
|
||||
],
|
||||
},
|
||||
})
|
||||
|
||||
io.serveClient(false)
|
||||
|
||||
app.set("views", "./views")
|
||||
app.set("view engine", "ejs")
|
||||
app.use(express.static("public"))
|
||||
|
|
Reference in a new issue