Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I check the version of socket.io and update it

how can I check the version of socket.io that I am using ? and how do I update it if there is new release.

Thank you in advance.

like image 911
jemz Avatar asked May 24 '15 02:05

jemz


People also ask

What is Socket.IO npm?

Socket.IO is a library that enables real-time, bidirectional and event-based communication between the browser and the server. It consists of: a Node. js server: Source | API. a Javascript client library for the browser (which can be also run from Node.

What is the difference between Socket.IO and socket IO client?

socket-io. client is the code for the client-side implementation of socket.io. That code may be used either by a browser client or by a server process that is initiating a socket.io connection to some other server (thus playing the client-side role in a socket.io connection).

How do I download Socket.IO JS?

From a CDN​ Socket.IO is also available from other CDN: cdnjs: https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.5.0/socket.io.min.js. jsDelivr: https://cdn.jsdelivr.net/npm/[email protected]/dist/socket.io.min.js. unpkg: https://unpkg.com/[email protected]/dist/socket.io.min.js.


1 Answers

  1. Download npm, the NodeJS Package Manager
  2. Install npm
  3. Open the terminal and execute the following command to install socket.io

    npm install socket.io
    
  4. When you want to update it, execute the following command on the terminal

    npm update socket.io
    

Alternatively you can execute

 npm update -g

in order to update globally installed packages.


To find out what is the current version execute npm list socket.io.

like image 192
GabrielOshiro Avatar answered Sep 22 '22 10:09

GabrielOshiro