mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-19 23:21:09 +00:00
fix(server): return listener when calling listen()
This commit is contained in:
parent
bacc40b8ec
commit
668db6fbbb
@ -245,6 +245,8 @@ export default class Server {
|
|||||||
this.listeners.push(listener)
|
this.listeners.push(listener)
|
||||||
|
|
||||||
await this.nuxt.callHook('listen', listener.server, listener)
|
await this.nuxt.callHook('listen', listener.server, listener)
|
||||||
|
|
||||||
|
return listener
|
||||||
}
|
}
|
||||||
|
|
||||||
async close() {
|
async close() {
|
||||||
|
Loading…
Reference in New Issue
Block a user