Skip to content

Commit b027020

Browse files
author
Matthew Creager
committed
Merge pull request #7 from mattcreaser/mattcreaser/goinstant-connect
Use goinstant.connect
2 parents c3baba4 + bf4ca38 commit b027020

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/templates/_main.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
var giStatus = require('./gi_status');
99

1010
var url = 'https://goinstant.net/<%= giAcct %>/<%= giApp %>';
11-
var platform = new goinstant.Platform(url);
1211

13-
platform.connect(function (err) {
12+
goinstant.connect(function (err, connection, lobby) {
1413
if (err) {
1514
giStatus.connected(false);
1615
console.log('Error connecting to platform:', err);
1716
return;
1817
}
1918

2019
giStatus.connected(true);
21-
});
20+
21+
/*jshint unused:false*/ // Remove once you're doing something with lobby!
22+
});

0 commit comments

Comments
 (0)