This node.js library seeks to combine express and socket.io into one cohesive library. This project started as a fork of express.io.
Attention!
I've started this project recently - so I may make breaking changes between releases, please check the README for each release for the latest documentation.
Getting started
First install:
npm install express.oi
Then, simply replace this line of code
with this line of code
Your app should run just the same as before! express.oi is designed to be a superset of express and socket.io.
Usage
Setting up the app
var express = ; var app = ; app; // Pass in your express-session configuration// Documentation here: https://github.com/expressjs/session#sessionoptionsappio; app;
express.oi routes
var messages = ; appio;
Forwarding express routes
Regular express routes can be forwarded to express.oi routes
app ;
More API Examples
// express.oi routesappio;