Lesterpig / sockpress

A simple express.js and socket.io wrapper for nodejs
MIT License
28 stars 9 forks source link

socket.io v2.2 #23

Closed anemol closed 5 years ago

anemol commented 5 years ago

I want to use the v2.2.0 of socket.io on the client side, so to be consistent, it is also necessary that the server runs with the same version with sockpress.

How to make sockpress use the right version?

Lesterpig commented 5 years ago

Hi, thanks for your interest! You may just need to update the socket.io package within sockpress directory.

Two options: yarn add socket.io@2.2.0 or npm install socket.io@2.2.0.

anemol commented 5 years ago

It is ok! Thanks!

I updated the package.json for socket.io and updated the other packages too (express, etc)

 "dependencies": {
    "cookie": "^0.2.3",
    "cookie-parser": "^1.4.1",
    "express": "^4.16.4",
    "express-session": "^1.13.0",
    "socket.io": "^2.2.0"
  },