Skip to content

Commit

Permalink
feat: add socket server
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfuboy committed Sep 13, 2022
1 parent cefd3f0 commit 025065a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/workbench/node/server/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const _LibsCommon = require('../request/libs/common.js');
const koaBody = require('koa-body');
const Koa = require('koa');
const cors = require('@koa/cors');
const socketio = require('./socketio');

const app = new Koa();
const port = 4201;
Expand Down Expand Up @@ -44,4 +45,5 @@ app.use(async (ctx, next) => {
next();
});

socketio();
app.listen(port);

0 comments on commit 025065a

Please sign in to comment.