nuclearace / CytubeBot

A bot for Cytube using node.js
25 stars 21 forks source link

Upgrade to socket.io-client 2.0 #56

Closed calzoneman closed 7 years ago

calzoneman commented 7 years ago

CyTube is upgrading to socket.io 2.0 soon. CytubeBot should probably be upgraded as well to avoid any strange behavior brought about by version incompatibility.

calzoneman commented 7 years ago

Tested this on beta.synchtube.me and it seems to work:

diff --git a/package.json b/package.json
index eda3447..f412434 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,7 @@
   },
   "dependencies": {
     "async": "~0.9.0",
-    "socket.io-client": "^1.3.5",
+    "socket.io-client": "^2.0.3",
     "libxmljs": "~0.18.0",
     "sqlite3": "3.1.8",
     "google-translate-api": "teamsteamdev/google-translate-api",

2017-07-10-205153_415x365_scrot

nuclearace commented 7 years ago

Yeah 2.0 wasn't that big of a change.