onehilltech / blueprint

solid framework for building APIs and backend services
125 stars 26 forks source link

Socket.io #39

Closed cotz1995 closed 7 years ago

cotz1995 commented 8 years ago

It would be awesome to integrate Socket.io for sending events to and from clients. I currently have it working in the following way:

var io = null; blueprint.messaging.on('app.init', function (app) { io = require ('socket.io')(app.server._protocols[0]._protocol); });

hilljh82 commented 8 years ago

@cotz1995 This would be a good module to add to the Blueprint ecosystem. There will need to be some updates, but we can look at adding this as a module. We will update this issue as progress is made.

Your current approach works for now.

hilljh82 commented 7 years ago

The first implementation of blueprint-socket.io is available:

https://github.com/onehilltech/blueprint-socket.io