Skip to content

Demonstrate easy enhancement of existing ExpressJS site #22

Description

@thepian

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions