Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e56a071

Browse files
committed
chore(dependencies): fixes after rebase
1 parent af2a138 commit e56a071

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

api/server.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import schema from './schema';
2222
import queryMap from '../extracted_queries.json';
2323
import config from './config';
2424

25+
const SUBSCRIPTIONS_PATH = '/subscriptions';
26+
2527
// Arguments usually come from env vars
2628
export function run({
2729
OPTICS_API_KEY,
@@ -129,9 +131,11 @@ export function run({
129131

130132
const server = createServer(app);
131133

132-
server.listen(port, () => console.log( // eslint-disable-line no-console
133-
`API Server is now running on http://localhost:${port}`,
134-
));
134+
server.listen(port, () => {
135+
// eslint-disable-line no-console
136+
console.log(`API Server is now running on http://localhost:${port}`);
137+
console.log(`API Subscriptions server is now running on ws://localhost:${port}${SUBSCRIPTIONS_PATH}`);
138+
});
135139

136140
// eslint-disable-next-line
137141
new SubscriptionServer(
@@ -156,7 +160,7 @@ export function run({
156160
},
157161
},
158162
{
159-
path: 'subscriptions',
163+
path: SUBSCRIPTIONS_PATH,
160164
server,
161165
},
162166
);

0 commit comments

Comments
 (0)