Skip to content

Commit

Permalink
refactor(server)!: change params to same style as config
Browse files Browse the repository at this point in the history
  • Loading branch information
ttshivers committed Aug 23, 2020
1 parent e10de36 commit 9a530bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/config/defaults.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const defaults = {
const defaults = Object.freeze({
port: 8088,
base_url: '/',
ping_interval: 10000,
static_path: null,
};
});

export default defaults;
2 changes: 1 addition & 1 deletion src/socketserver/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9a530bf

Please sign in to comment.