How to modularize a socket.io intensive app using middleware

… so this is that post for modularizing apps that rely largely on socket.io events.   This is for the ones that believe on the single-reponsibility principle and don’t find an example for this when trying to fit socket.io in an app that starts demanding some structure. tl;dr You can create socket.io middleware functions andContinue reading “How to modularize a socket.io intensive app using middleware”

npm packages for accessing properties of objects using dot-path notation

Two alternatives to accessing properties of objects using dot-path notation. Access properties of nested objects using dot-path notation https://github.com/deoxxa/dotty 15 forks. 123 stars. 14 open issues. Recent commits: Docs: Update examples with expected output, Michael Stramel Update License for GitHub, Michael Stramel 0.1.0, Stramel Add NPM version badge, Michael Stramel 0.0.3, Michael Stramel and https://www.npmjs.com/package/mpath

https github com zapty forever service Amazing And…

Provision node script as a service via forever, allowing it to automatically start on boot, working across various Linux distros and OS https://github.com/zapty/forever-service 57 forks. 574 stars. 40 open issues. Recent commits: Update README.md, GitHub Fix for foreverpath, Thanks to @brokenmass., Arvind Agarwal Merge pull request #64 from brokenmass/foreverpath-fixAllowing use of –foreverPath option even ifContinue reading “https github com zapty forever service Amazing And…”

OSGeo

I’m happy today because I was nominated yesterday as an OSGeo chart member by mmiranda and Jeff McKenna. Two great open source geo developers and advocates from the OSGeo Foundation. I’m glad to be part of the supporting community for this foundation. The nomination per-se is not a big deal. I won’t have too muchContinue reading “OSGeo”

Three usage scenarios with browserify

Some prior words on browserify debug mode First of all, remember that browserify will, by default function in debug mode. That is why the first time you try browserify you’ll see a lot of gibberish characters appended to the browserified file. Every scenario described here, has its own way of disabling the debugging (i.e. disabling sourceContinue reading “Three usage scenarios with browserify”

Sharing Express session data with socket.io

How to access the cookie-based session data of an express app from a socket instance What do I mean with Sharing Express session data with socket.io? Well, if I have an express app and a socket.io server instance, both attached to the same http or https server, what I would like, is to be ableContinue reading “Sharing Express session data with socket.io”