Skip to content

Add a JavaScript sample to demonstrate SignalR Trigger #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

zackliu
Copy link
Member

@zackliu zackliu commented Mar 12, 2020

Related to #101

The RP demonstrate SignalR Trigger usage in JavaScript. As far as I know, non-C# Functions has more limitation, so that binding data can not be bond to function's parameter directly. Instead, binding data are retrieved through context.bindingData.<parameter-name>.

@davidfowl
Copy link
Member

Here's my port of SignalR to node for insipration:

https://github.com/davidfowl/signalr-ports/blob/master/signalr-node-server/app.js

I wonder how close we can get to this with the existing functions APIs.

@zackliu
Copy link
Member Author

zackliu commented Mar 12, 2020

We can develop a serverless SDK for node just like what we've done for C#. Then we can git rid of output binding and use syntax like chat.clients.all.send('send', message);.
However, for the input side, unless there's an entrypoint for us to customize cross-language invocation, the experience hard to be improved.

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

Successfully merging this pull request may close these issues.

3 participants