Skip to content

Commit

Permalink
Merge branch 'hotfix/v1.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
kuyoonjo committed Apr 22, 2018
2 parents 2a40cf3 + a0f6658 commit 1c90b09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "ycs-plugin-mosca",
"version": "1.0.2",
"version": "1.0.3",
"description": "ycs-plugin-mosca",
"license": "MIT",
"repository": "https://github.com/yc-server/ycs-plugin-mosca.git",
Expand Down Expand Up @@ -36,7 +36,8 @@
"devDependencies": {
"@types/jest": "^20.0.5",
"@types/node": "^8.0.0",
"@ycs/core": "^0.1.12",
"@types/socket.io": "^1.4.33",
"@ycs/core": "^1.0.5",
"colors": "^1.1.2",
"coveralls": "^2.0.0",
"jest": "^20.0.4",
Expand Down
4 changes: 4 additions & 0 deletions src/setup.ts
@@ -1,4 +1,5 @@
import { Ycs } from '@ycs/core';
import { preListenActions } from '@ycs/core/lib/http';
import { Router } from '@ycs/core/lib/routers';
import * as colors from 'colors/safe';
import * as koa from 'koa';
Expand Down Expand Up @@ -38,6 +39,9 @@ function setupMosca(app: Ycs, config: IConfig) {
new koa().use(serve(path.dirname(require.resolve('mosca')) + '/public'))
)
);
preListenActions.push(httpServer => {
serve.attachHttpServer(httpServer);
});
} else {
server = new mosca.Server({
port: config.port,
Expand Down

0 comments on commit 1c90b09

Please sign in to comment.