Kselax.ru

Hacker Kselax – the best hacker in the world

Menu
  • Blog
  • Contacts
  • wp plugin generator
  • English
    • Русский
Menu
socket.io

How does socket.io work?

Posted on 28 July, 2018 by admin

In this article, I’m going to explain to you how socket.io works. Let’s get started!

Socket.io consists of a few modules. you can see it on npm packages

  • debugengine.io
  • has-binary2
  • socket.io-adapter
  • socket.io-client
  • socket.io-parser

These modules have inside a few other packages. It’s a big bunch of modules.  I want to breakdown socket.io-redis. This module linked with socket.io-Adapter. but they’re all linked to socket.io-adapter. I thought it used for the only socket.io-redis, but ok, passed. In this articles will be step by step breaking down all modules until we will know how it works. I’m going to pass you by the road.

How does it work on the surface?

Bunch modules. There I saw a few times two functions suck as encode and decode. These functions from the socket.io-parser. Encode is used for transfer data from socket.io to engine.io and decode for the opposite from engine.io to socket.io.

 

 

 

 

 

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • bash (1)
  • English (9)
  • JavaScript (4)
  • node.js (22)
  • photoshop (1)
  • php (3)
  • React (9)
  • sclerotic (6)
  • Ubuntu (10)
  • Uncategorized (15)
  • Wordpress (1)

Tags

Ajax apache2 automation bash chrome-extension command line editor ejs email English English-grammar framework functions git graphql handlebars hybrid app installation javascript js linux newbie node.js node.js javascript nodemailer npm objects Performance php phpmyadmin playonlinux promise rabbitmq React react-router redis reverse-proxy session shell socket.io sublime text 3 time zones ubuntu unity webpack

Recent Comments

  • damien on How to install npm and nodejs the latest versions on ubuntu
  • Cam on How to install npm and nodejs the latest versions on ubuntu
  • Pierre on socket.io with apache as a reverse proxy on the CentOS
  • admin on How to use react-router with a few languages
  • admin on How to install npm and nodejs the latest versions on ubuntu
©2021 Kselax.ru Theme by ThemeGiant