Skip to content

Commit 9a530bf

Browse files
committed
refactor(server)!: change params to same style as config
1 parent e10de36 commit 9a530bf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/config/defaults.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const defaults = {
1+
const defaults = Object.freeze({
22
port: 8088,
33
base_url: '/',
44
ping_interval: 10000,
55
static_path: null,
6-
};
6+
});
77

88
export default defaults;

src/socketserver/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import attachEventHandlers from './handlers';
1111
import { getHealth } from './state';
1212

1313
const socketServer = ({
14-
baseUrl, staticPath, port, pingInterval,
14+
base_url: baseUrl, static_path: staticPath, port, ping_interval: pingInterval,
1515
}) => {
1616
http.globalAgent.keepAlive = true;
1717

0 commit comments

Comments
 (0)