Skip to content

Commit

Permalink
Added socket.io v0.7 warnings, compatibility forthcoming
Browse files Browse the repository at this point in the history
  • Loading branch information
msmathers committed Jun 23, 2011
1 parent e88a88f commit 772f518
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Powered by [node.js](http://nodejs.org) + [socket.io](http://socket.io)

[node.js](http://nodejs.org)

[socket.io](http://socket.io)
[socket.io (v0.6.17)](http://socket.io) (WARNING: Log.io is currently incompatible with socket.io v0.7)

[connect](http://senchalabs.github.com/connect/)

Expand Down
17 changes: 15 additions & 2 deletions bin/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,24 @@ var e = console.log;
try {
e("Checking for node.js package 'socket.io'...");
var io = require('socket.io');
var version = io.version;
if (version.indexOf("0.7") >= 0) {
e("ERROR: Log.io is currently incompatible with socket.io v0.7");
e("Be sure to use v0.6.17");
e("");
e("npm install socket.io@0.6.17");
e("... or ...");
e("https://github.com/LearnBoost/Socket.IO-node/tree/0.6.17");
process.exit(1);
}
} catch (err) {
e("ERROR: Could not find socket.io package");
e("npm install socket.io");
e("npm install socket.io@0.6.17");
e("... or ...");
e("https://github.com/LearnBoost/Socket.IO-node.git");
e("https://github.com/LearnBoost/Socket.IO-node/tree/0.6.17");
e("");
e("WARNING: Log.io is currently incompatible with socket.io v0.7");
e("Be sure to use v0.6.17");
process.exit(1);
}

Expand Down

0 comments on commit 772f518

Please sign in to comment.