Express (or Connect) is an application platform for HTTP web applications. This is the entry point to your application. It provides some very general functions, such as:
- HTTP server
- URL routing
- Args request
- Session
It also allows you to easily use other functional functions (they are called middleware), such as authentication processing, templating.
pub/sub- SocketIO - API, Socket.io( S.io):
var io = require('socket.io').listen(80);
io.sockets.on('connection', function (socket) {
socket.emit('news', { hello: 'world' });
socket.on('my other event', function (data) {
console.log(data);
});
});
Socket.io , API, (?) Express (. How )