Going through the socket.io's get-started, and I come across a module requirement I can't find clear an explanation of:
var app = require('express')();
var http = require('http').Server(app);
the author describes these lines:
Express initializes app to be a function handler that you can supply to an HTTP server (as seen in line 2)
I haven't found explanations for this usage in any of the documentations for require that I have read. So, what is happening here? Socket.io is irrelevant to my question. It's only referenced to provide a bit of context. Not sure if this is a simple or complex question...