File tree 3 files changed +14
-14
lines changed
3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ config/nodes.js
10
10
* .swp
11
11
* .pem
12
12
.node-xmlhttprequest- *
13
- ws_secret.json
13
+ ws_secret.json
14
+ stats.json
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ api = new Primus(server, {
54
54
parser : 'JSON'
55
55
} ) ;
56
56
57
- api . use ( 'emit' , require ( 'primus-emit' ) ) ;
58
- api . use ( 'spark-latency' , require ( 'primus-spark-latency' ) ) ;
57
+ api . plugin ( 'emit' , require ( 'primus-emit' ) ) ;
58
+ api . plugin ( 'spark-latency' , require ( 'primus-spark-latency' ) ) ;
59
59
60
60
61
61
// Init Client Socket connection
@@ -65,7 +65,7 @@ client = new Primus(server, {
65
65
parser : 'JSON'
66
66
} ) ;
67
67
68
- client . use ( 'emit' , require ( 'primus-emit' ) ) ;
68
+ client . plugin ( 'emit' , require ( 'primus-emit' ) ) ;
69
69
70
70
71
71
// Init external API
@@ -75,7 +75,7 @@ external = new Primus(server, {
75
75
parser : 'JSON'
76
76
} ) ;
77
77
78
- external . use ( 'emit' , require ( 'primus-emit' ) ) ;
78
+ external . plugin ( 'emit' , require ( 'primus-emit' ) ) ;
79
79
80
80
// Init collections
81
81
var Collection = require ( './lib/collection' ) ;
Original file line number Diff line number Diff line change 17
17
"debug" : " 2.2.0" ,
18
18
"express" : " 4.13.3" ,
19
19
"geoip-lite" : " 1.1.6" ,
20
- "jade" : " 1.11.0" ,
21
- "lodash" : " 3.10.1" ,
22
- "primus" : " 3.2.1" ,
23
- "primus-emit" : " 0.1.2" ,
24
- "primus-spark-latency" : " 0.1.1" ,
25
- "ws" : " 0.8.1" ,
26
20
"grunt" : " ^0.4.5" ,
27
21
"grunt-contrib-clean" : " ^0.6.0" ,
28
22
"grunt-contrib-concat" : " ^0.5.1" ,
29
23
"grunt-contrib-copy" : " ^0.8.0" ,
30
24
"grunt-contrib-cssmin" : " ^0.12.3" ,
31
25
"grunt-contrib-jade" : " ^0.14.1" ,
32
- "grunt-contrib-uglify" : " ^0.9.1"
26
+ "grunt-contrib-uglify" : " ^0.9.1" ,
27
+ "jade" : " 1.11.0" ,
28
+ "lodash" : " 3.10.1" ,
29
+ "primus" : " ^6.0.3" ,
30
+ "primus-emit" : " ^1.0.0" ,
31
+ "primus-spark-latency" : " ^0.1.1" ,
32
+ "ws" : " ^1.1.1"
33
33
},
34
34
"repository" : {
35
35
"type" : " git" ,
47
47
}
48
48
],
49
49
"license" : " LGPL-3.0" ,
50
- "devDependencies" : {
51
- }
50
+ "devDependencies" : {}
52
51
}
You can’t perform that action at this time.
0 commit comments