Skip to content
This repository was archived by the owner on Mar 24, 2024. It is now read-only.

Commit 216a69e

Browse files
committed
reproduce bug
1 parent e298b84 commit 216a69e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

package.json

100755100644
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
"methods": "~1.1.2",
4848
"preboot": "~4.5.2",
4949
"rxjs": "5.0.0-beta.12",
50-
"zone.js": "~0.6.25"
50+
"socket.io": "^1.5.0",
51+
"zone.js": "0.6.26"
5152
},
5253
"devDependencies": {
5354
"@types/body-parser": "0.0.29",
@@ -59,6 +60,7 @@
5960
"@types/mime": "0.0.28",
6061
"@types/node": "^6.0.38",
6162
"@types/serve-static": "^1.7.27",
63+
"@types/socket.io": "^1.4.27",
6264
"angular2-template-loader": "^0.4.0",
6365
"cookie-parser": "^1.4.3",
6466
"imports-loader": "^0.6.5",

src/server.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import * as path from 'path';
55
import * as express from 'express';
66
import * as bodyParser from 'body-parser';
77
import * as cookieParser from 'cookie-parser';
8+
import * as io from 'socket.io';
89

910
// Angular 2
1011
import { enableProdMode } from '@angular/core';
@@ -68,3 +69,5 @@ app.get('*', function(req, res) {
6869
let server = app.listen(process.env.PORT || 3000, () => {
6970
console.log(`Listening on: http://localhost:${server.address().port}`);
7071
});
72+
73+
const ioServer = io(server);

0 commit comments

Comments
 (0)