Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

Channels #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Channels #4

wants to merge 4 commits into from

Conversation

ptariche
Copy link
Owner

An introduction to utilizing Channels with the starter

ctx.state.channel.channels.send(['FUNCTION_NAME', 'ARGUMENTS']);
ctx.state.channel.channels.send(['request.get', 'http://yahoo.com']);

Set Channel Functions

class ChannelLambda {
  static build (ctx) {
    ctx.state.channel.fn['request.get']  = require('./../helpers/').request.get;
    ctx.state.channel.fn['request.post'] = require('./../helpers/').request.post;
    return ctx.state.channel.fn;
  };
};

module.exports = ChannelLambda.build;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant