socketstream / ss-examples

Examples of using Socketstream
MIT License
3 stars 7 forks source link

Demonstrate easy enhancement of existing ExpressJS site #22

Open thepian opened 8 years ago

thepian commented 8 years ago

express-js has a very nice API if you just need a little extra real-time magic. It is clearly quite popular.

With the new application task approach it should be possible to remove task definitions from the app.js

With gulp-socketstream the start could be overridden and socketstream be embedded

Perhaps

var socketstream = require('socketstream/gulp');
var express = require('express');
var app = express();
var socketstream = require('socketstream/express')(app);

app.socketstream('...', function(req, stream) {
});

Takes over the listen call to do it via the socket server

thepian commented 8 years ago

Make screen cast showing how to add SocketStream to a MEAN demo app

arxpoetica commented 8 years ago

Interesting.

thepian commented 8 years ago

The basic support for express is already on develop. I will need some input/ideas on what API to expose on the Express App.