Commit | Line | Data |
---|---|---|
1 | const Params = { | |
2 | ||
3 | // Usage on client: | |
4 | http_server: "http://localhost:8000", //https://xogo.casa | |
5 | socket_server: "ws://localhost:8080", //wss://xogo.casa | |
6 | ||
7 | // Usage on (socket) server: | |
8 | socket_port: 8080, //... | |
9 | dev: true, | |
10 | ||
11 | // Usage on both: | |
12 | socket_path: "/ws", | |
13 | ||
14 | }; | |
15 | ||
16 | // Next line for usage on server (Node.js) | |
17 | if (typeof window === 'undefined') module.exports = Params; |