You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -158,7 +174,7 @@ export async function startPreview(filePath:string,base:string | undefined,baseD
158
174
'Warning: No file was provided, and we couldn\'t find a default file (like "asyncapi.yaml" or "asyncapi.json") in the current folder. Starting Studio with a blank workspace.'
res.end(JSON.stringify({message: 'Server is shutting down'}));
126
+
// Close the server
127
+
server.close(()=>{
128
+
// eslint-disable-next-line no-process-exit
129
+
process.exit(0);
130
+
});
131
+
return;
132
+
}
133
+
handle(req,res);
134
+
});
120
135
121
136
server.on('upgrade',(request,socket,head)=>{
122
137
if(request.url==='/live-server'){
@@ -145,7 +160,9 @@ export async function start(filePath: string, port: number = DEFAULT_PORT): Prom
145
160
'Warning: No file was provided, and we couldn\'t find a default file (like "asyncapi.yaml" or "asyncapi.json") in the current folder. Starting Studio with a blank workspace.',
0 commit comments