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

Channels#4

Open
ptariche wants to merge 4 commits intomasterfrom
channels
Open

Channels#4
ptariche wants to merge 4 commits intomasterfrom
channels

Conversation

@ptariche
Copy link
Copy Markdown
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