File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ import schema from './schema';
22
22
import queryMap from '../extracted_queries.json' ;
23
23
import config from './config' ;
24
24
25
+ const SUBSCRIPTIONS_PATH = '/subscriptions' ;
26
+
25
27
// Arguments usually come from env vars
26
28
export function run ( {
27
29
OPTICS_API_KEY ,
@@ -129,9 +131,11 @@ export function run({
129
131
130
132
const server = createServer ( app ) ;
131
133
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
+ } ) ;
135
139
136
140
// eslint-disable-next-line
137
141
new SubscriptionServer (
@@ -156,7 +160,7 @@ export function run({
156
160
} ,
157
161
} ,
158
162
{
159
- path : 'subscriptions' ,
163
+ path : SUBSCRIPTIONS_PATH ,
160
164
server,
161
165
} ,
162
166
) ;
You can’t perform that action at this time.
0 commit comments