UNPKG

actionhero

Version:

actionhero.js is a multi-transport API Server with integrated cluster capabilities and delayed tasks

16 lines (11 loc) 274 B
exports.createChatRoom = { name: 'createChatRoom', description: 'I will create a chatroom with the given name', outputExample: {}, inputs: { name: { required: true } }, run: function(api, data, next){ api.chatRoom.add(data.params.name, next); } };