diff --git a/src/config/defaults.js b/src/config/defaults.js index e4c89c9a..1e3da1c0 100644 --- a/src/config/defaults.js +++ b/src/config/defaults.js @@ -1,8 +1,8 @@ -const defaults = { +const defaults = Object.freeze({ port: 8088, base_url: '/', ping_interval: 10000, static_path: null, -}; +}); export default defaults; diff --git a/src/socketserver/index.js b/src/socketserver/index.js index df2e88b4..d928b340 100644 --- a/src/socketserver/index.js +++ b/src/socketserver/index.js @@ -11,7 +11,7 @@ import attachEventHandlers from './handlers'; import { getHealth } from './state'; const socketServer = ({ - baseUrl, staticPath, port, pingInterval, + base_url: baseUrl, static_path: staticPath, port, ping_interval: pingInterval, }) => { http.globalAgent.keepAlive = true;