From the socket.io chat example.
What does it mean in the index.js:
var io = require('../..')(server);
What does '../..' means? I looked up the some information and some say that '../' means the index.js in the parent folder, is that correct?
I noticed that the index.js is missing require('socket.io')(server);
index.js:
var express = require('express');
var app = express();
var path = require('path');
var server = require('http').createServer(app);
var io = require('../..')(server);
var port = process.env.PORT || 3000;
so maybe ../.. require socket.io for us too?
Found same question on SO:
Here's the link