Answer the question
In order to leave comments, you need to log in
How to understand socket.io initialization?
It needs to be integrated into a ready-made application based on express generator. But for this, you first need to figure out how socket.io is initialized.
var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question