node-publish | npm module to automate publishing | File Upload library
kandi X-RAY | node-publish Summary
kandi X-RAY | node-publish Summary
npm module to automate publishing of npm modules Useful when you want to publish every time you bump the version in your module as part of your continuos integration setup.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-publish
node-publish Key Features
node-publish Examples and Code Snippets
Community Discussions
Trending Discussions on node-publish
QUESTION
Can someone point me in the right direction? I'm working with a client who is looking to have 3rd parties receive event data from them (blob created, etc). The C# example works great:
https://azure.microsoft.com/en-us/resources/samples/event-grid-dotnet-publish-consume-events/
However, some of their clients are using Node and we're having trouble getting them connected. The samples work great when there is a sender/listener, but the listener is effectively swallowing Event Grid events, as they are sent with a "request" key, and the sender/listener events are sent with an "accept" key.
https://github.com/Azure/azure-relay/tree/master/samples/hybrid-connections/node
I can point directly to the line within each Node sample (HybridConnectionWebSocktServer.js, etc.) where the event is being processed, and subsequently ignored.
I've also found and tried this function example, but haven't been successful receiving Event Grid events locally:
https://azure.microsoft.com/is-is/resources/samples/event-grid-node-publish-consume-events/
Is there a better example? Is there a better method? Should we be approaching this from another direction?
Any help, guidance, or nudge in the right direction would be greatly appreciated.
...ANSWER
Answered 2019-Jul-31 at 23:16I reached out to all available avenues to try to resolve my issue quickly. I wanted to post the answer here in case anyone else has the same trouble I did.
Huge thanks to those at Microsoft that were able to point me in the right direction and help me solve the issue.
Event Grid is built exclusively on HTTP so it makes sense that you’re getting the events with a request gesture. Incase you haven’t found it, the doc on the interaction model for Hybrid Connections is available here.
The sample you’re looking at uses the hyco-ws package which is for websockets only. The package you want to be using is hyco-https which allows listening to HTTP messages. This sample shows how to use Hybrid Connections with HTTP.
I had tried this example as well, but didn't see (or know how to access) the event data.
A little more digging I was able to find a way to data by adding the req.on lines:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-publish
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page