Browse Source
formatting socket.js + deal with broken windows ports - default :50013
pull/32/head^2
Philipp Dormann
4 years ago
No known key found for this signature in database
GPG Key ID: 3BB9ADD52DCA4314
2 changed files with
15 additions and
20 deletions
-
server/server.js
-
src/mixins/socket.js
|
|
@ -18,7 +18,7 @@ console.log("args:") |
|
|
|
console.log(args) |
|
|
|
|
|
|
|
const hostname = args.host || "0.0.0.0" |
|
|
|
const port = args.port || 3001 |
|
|
|
const port = args.port || 50013 |
|
|
|
|
|
|
|
app.use(express.json()) |
|
|
|
|
|
|
|
|
|
@ -33,12 +33,7 @@ export default { |
|
|
|
created() { |
|
|
|
window.addEventListener('resize', this.onResize); |
|
|
|
|
|
|
|
let wsHost; |
|
|
|
if (localStorage.dev === "dev") { |
|
|
|
wsHost = ":3001" |
|
|
|
} else { |
|
|
|
wsHost = "" |
|
|
|
} |
|
|
|
const wsHost = ":50013" |
|
|
|
|
|
|
|
socket = io(wsHost, { |
|
|
|
transports: ['websocket'] |
|
|
|