add subscribed event

This commit is contained in:
Matias Alejo Garcia 2014-08-28 19:22:52 -03:00
parent c6b8464bc3
commit 384ce8ad50

View File

@ -15,6 +15,7 @@ module.exports.init = function(io_ext) {
socket.on('subscribe', function(topic) {
logger.debug('subscribe to ' + topic);
socket.join(topic);
socket.emit('subscribed');
});
// disconnect handler