Skip to content

Commit 42f1afd

Browse files
author
dassiorleando
committed
Add socket.io-client types
1 parent 88ec21e commit 42f1afd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,16 @@
3131
"http-status": "^1.0.1",
3232
"mongoose": "^4.9.7",
3333
"rxjs": "^5.1.0",
34-
"socket.io": "^1.7.3",
35-
"socket.io-client": "^1.7.3",
34+
"socket.io": "^1.7.4",
35+
"socket.io-client": "^1.7.4",
3636
"zone.js": "^0.8.4"
3737
},
3838
"devDependencies": {
3939
"@angular/cli": "1.0.1",
4040
"@angular/compiler-cli": "^4.0.0",
4141
"@types/jasmine": "2.5.38",
4242
"@types/node": "~6.0.60",
43+
"@types/socket.io-client": "^1.4.29",
4344
"codelyzer": "~2.0.0",
4445
"jasmine-core": "~2.5.2",
4546
"jasmine-spec-reporter": "~3.2.0",

src/app/app.socketIo.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class AppSocketIoService {
2727
var self = this;
2828
this.socket.on('gistSaved', function(gist: Gist){
2929
self.toasterService.pop('success', 'NEW GIST SAVED',
30-
'A gist of title ' + gist.title + ' has just been shared' + ' with stack: ' + gist.technologies);
30+
'A gist with title ' + gist.title + ' has just been shared' + ' with stack: ' + gist.technologies);
3131
});
3232
}
3333

@@ -36,7 +36,7 @@ export class AppSocketIoService {
3636
var self = this;
3737
this.socket.on('gistUpdated', function(gist: Gist){
3838
self.toasterService.pop('info', 'GIST UPDATED',
39-
'A gist of title ' + gist.title + ' has just been updated');
39+
'A gist with title ' + gist.title + ' has just been updated');
4040
});
4141
}
4242
}

0 commit comments

Comments
 (0)