@ -154,8 +154,11 @@ class Five {
// 启动http服务
listen(port = 3000, callback = noop) {
this.set({ port })
if (this.#online) {
return console.error('Server already started')
}
this.#online = true
this.#server = http.createServer()