Realtime-web framework for nodejs
realtime-web framework for node.js
express.io = express + socketio
Here is the canonical express.io example.
app =app//build your realtime-web appapp
npm install express.io
Then, simply replace this line of code
with this line of code
Your app should run just the same as before! Express.io is designed to be a superset of Express and Socket.io. An easy to use drop-in replacement that makes it simple to get started with the realtime-web.
With express.io you can do realtime routing like a pro.
And then on the client you would emit these events:
Or do it the old fashioned way:
Sessions work automatically, just set them up like normal using express.
It's easy to forward regular http routes to your realtime routes.
All of these examples work. I repeat, they all work. Express.io is a very simple framework that allows you to build incredibly complex realtime apps with very little code.
Or view them bite size:
To run the examples from git, do the following:
git clone https://github.com/techpines/express.iocd expressio/examplesnpm install
Then you'll be ready to run the example code with a simple:
This should help you get a birds eye view of the express.io architecture. Simple and lean. Reuse your express and socket.io knowledge.
Here are all the wonderful express.io objects!
Have frequent questions, we have frequent answers.
We have a full test suite. We also run the full express test suite to ensure compatibility.
cd express.ionpm test
It's free! Party with the MIT!
Copyright (c) 2012 Tech Pines LLC, Brad Carleton
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.