javascript - Multiple files on a socket io file -
how can handle multiple file connections single socket io file.
for example have these 3 pages: index1.html
, index2.html
, index3.html
.
how can connect of these 3 files single socket io file?
when connected on index1.html
, when click link index1.html
redirect me index2.html
want show in console still connected.
here code 1 file:
app.get('/', function(req, res){ res.sendfile(__dirname + '/index.html'); });
Comments
Post a Comment