add subscribed event
This commit is contained in:
parent
c6b8464bc3
commit
384ce8ad50
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user