File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ export async function listen<SLocals extends AnyServiceLocals = ServiceLocals<Co
429
429
} ) ;
430
430
431
431
await listenPromise ;
432
- await service . onListening ?.( app , port ) ;
432
+ await service . onListening ?.( app , { port, protocol : config . certificate ? 'https' : 'http' } ) ;
433
433
return server ;
434
434
}
435
435
Original file line number Diff line number Diff line change @@ -79,7 +79,10 @@ export interface Service<
79
79
// Called after a server is created but before the server starts listening
80
80
attachServer ?: ( app : ServiceExpress < SLocals > , server : Server ) => void | Promise < void > ;
81
81
// Called after the server is listening
82
- onListening ?: ( app : ServiceExpress < SLocals > , port : number ) => void | Promise < void > ;
82
+ onListening ?: (
83
+ app : ServiceExpress < SLocals > ,
84
+ info : { port : number ; protocol : 'http' | 'https' } ,
85
+ ) => void | Promise < void > ;
83
86
84
87
start ( app : ServiceExpress < SLocals > ) : void | Promise < void > ;
85
88
You can’t perform that action at this time.
0 commit comments