Skip to content

Commit

Permalink
feat: add overlay page
Browse files Browse the repository at this point in the history
  • Loading branch information
ErKeLost committed Dec 25, 2023
1 parent bc0c017 commit 6abf674
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions packages/core/src/server/ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ export default class WsServer implements IWebSocketServer {
connection() {
this.wss.on('connection', (socket: WebSocketRawType) => {
socket.on('message', (raw) => {
console.log("我在监听 message 了啊");

if (!this.customListeners.size) return;
let parsed: any;
try {
Expand Down Expand Up @@ -196,8 +194,6 @@ export default class WsServer implements IWebSocketServer {
}

public async close() {
console.log("我关闭 ws 了");

if (this.upgradeWsServer && this.httpServer) {
this.httpServer.off('upgrade', this.upgradeWsServer);
}
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/utils/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export async function compilerHandler(
try {
await callback();
} catch (error) {
console.log('这个应该是构建的报错');
logger.error(error, {
exit: true
});
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/watcher/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export class FileWatcher implements ImplFileWatcher {
}, this.options);
}
} catch (error) {
console.log('我这是不是走了两遍 error 啊', error);
this._logger.error(error);
}
};
Expand Down

0 comments on commit 6abf674

Please sign in to comment.