This topic was automatically generated from Slack. You can find the original thread here.
Grady Sain : I’m looking for a way to send messages to Pipedream from a web client, without using http form submission. Imagine a website- a control panel of 50 buttons. I’d like to be able to communicate as quickly as possible with pipedream (websockets?) - the user can press buttons rapidly and expect a low amount of latency as the messages get routed from pipedream to their final destinations. Does anyone have any thoughts as to how I might best proceed? Thanks in advance…
Dylan Sather (Pipedream) : Hi , would you be able to run code that initiates an HTTP POST request to Pipedream when the user clicks the button? You wouldn’t need to submit a form in this case, and the HTTP request would happen in the background.
Are you using a specific frontend framework? Happy to help point you to some resources.
Grady Sain : yes! I guess i’m still too much of a newb to realize that’s just as fast as anything else i could imagine… i’m using webflow for all my frontend stuff right now, and i have a bunch of working pipedream workflows that can finish the communications for me. i’ll let you know how it goes, and thanks again.
Grady Sain : it was easier than i expected, i forked this and ran the javascript example. i keep getting this error tho- ReferenceErrormessage is not defined – and i actually got that same error with a javascript approach i madee before i saw the example… i’ve tried a bunch of different key / values, always get that error… any thoughts?
Dylan Sather (Pipedream) : I modified that workflow to correct the error, feel free to copy and try it again. The actual error should be returned in the HTTP response when you call the workflow, e.g. you might see “Cannot issue a POST request against the root URI /. Try POSTing to /foo or /test (for example)”
Dylan Sather (Pipedream) : Can you tell me at a high level what you’re trying to accomplish within the workflow? This workflow serves a very specific purpose and I think it might be easier to start from scratch, but I’d like to hear what your goal is
Grady Sain : this all is due to webflow’s workflow. in webflow, you can’t add a form button without adding an entire template form. it takes forever to delete the fields you don’t need and it’s easy to mess it up. so i wanted to just use a regular button and some javascript to send a message to pipedream, which in turn i send to pusher, then to my final application… the JSON structure will always be pretty straightforward, keys and values…
Grady Sain : i’m super new to all things web communication, and i wouldn’t be able to do what i’m doing now without pipedream and your help, thanks again