appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
32.32k stars 3.5k forks source link

[Feature] Allow connecting to web sockets #1866

Open areyabhishek opened 3 years ago

areyabhishek commented 3 years ago

Summary

Allow developers to connect to web sockets to build apps that can subscribe to events and real-time databases.

Motivation

Reddit comment: I'm missing an option to communicate over a web socket. I.e streaming a log file and/or sending multiple responses from my API would be super useful. Also, would sending and receiving messages from MQTT be a feasible feature?

It'll be useful for dashboards where data is updated in real-time. Users could also add a chat window.

Additional Context

https://www.reddit.com/r/AskProgramming/comments/hn043x/any_opensource_alternatives_to_retool_or/gbyg694/?context=3

Front logo Front conversations

Workaround

https://community.appsmith.com/t/how-to-create-an-appsmith-app-which-integrates-with-websockets/1958

iangregsondev commented 2 years ago
Vibeesarma commented 2 years ago

I am also waiting for this feature in appsmith because I am using appsmith monitoring work so without WebSocket I want to refresh every time in appsmith.

Nikhil-Nandagopal commented 2 years ago

@Vibeesarma as a workaround, you can poll the data from your datasource using setInterval

baguse commented 1 year ago

@Nikhil-Nandagopal sorry, any updates of this feature?

Nikhil-Nandagopal commented 1 year ago

@baguse none yet. We're currently focusing on improving the current integrations so we haven't added any new ones

tomjose92 commented 1 year ago

Here is an alternative to how we can currently integrate websockets with Appsmith https://community.appsmith.com/t/how-to-create-an-appsmith-app-which-integrates-with-websockets/1958

FletchGrainConnect commented 1 year ago

It would be helpful to have sockets exposed now the you have released the ability to add Custom Objects. In our use case a number of our network hardware vendors offer socket based communication for configuration of equipment and we would like to add this to one of our internal applications.

5hanth commented 1 year ago

I'm trying to build something on Nostr with Appsmith but currently this is being a blocker. Do we have any roadmap to support websockets?

danishwohlig commented 1 year ago

hello team, When will this feature incorporated into Appsmith, we are planning to use web-sockets to create some realtime system.

mircotamburini commented 1 year ago

any updates? how to use websocket

antorappai commented 1 year ago

i think this would be helpful for example connecting to a stock broker API, to get instant live prices. Still a newbie :)

rlnorthcutt commented 11 months ago

We actually have a tutorial available on how to do this now! https://community.appsmith.com/tutorial/integrating-websockets-appsmith

fwhdzh commented 8 months ago

Looking forward to an easy-to-use interface for websocket. I think it is very useful.

Nikhil-Nandagopal commented 8 months ago

@fwhdzh Could you tell us what type of app you are building that requires real-time websockets? We'd also like to understand the backend service you are using for websockets

fwhdzh commented 8 months ago

I'm building a website in which the user can click a button to send a request to the background to start a series of tasks. These tasks are executed sequentiall. However, the time budget they need can vary widely. I want the backend to be able to give the frontend a feedback when each task is done.

I knew I could solve this problem with better system design. For example, I can store the "feedback" in a database and show them in another format using AppSmith's DataSource. But for now, I don't want my application to interacte with a database. I could also use setInternal() to continously queries the backend, but that would be not elegant. Therefore, I think it is helpful to have a websocket can detect every update of the background and sent it to the frontend.

antorappai commented 8 months ago

i am trying to build a bot for trading that requires me to have a WebSocket to pull in live stock price ticker from my trading provider API to execute trade if a particular price strikes

thank Anto

-

Thanks

Anto

On Fri, Nov 3, 2023 at 6:35 AM Feng Wenhan @.***> wrote:

I'm building a website in which the user can click a button to send a request to the background to start a series of tasks. These tasks are executed sequentiall. However, the time budget they need can vary widely. I want the backend to be able to give the frontend a feedback when each task is done.

I knew I could solve this problem with better system design. For example, I can store the "feedback" in a database and show them in another format using AppSmith's DataSource. But for now, I don't want my application to interacte with a database. I could also use setInternal() to continously queries the backend, but that would be not elegant. Therefore, I think it is helpful to have a websocket can detect every update of the background and sent it to the frontend.

— Reply to this email directly, view it on GitHub https://github.com/appsmithorg/appsmith/issues/1866#issuecomment-1791763723, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOQV4K4YPZXTCIHX7MZSAKDYCQ7NHAVCNFSM4T7VMUAKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZZGE3TMMZXGIZQ . You are receiving this because you commented.Message ID: @.***>

SrijitaRoy913 commented 5 months ago

I'm building a dashboard that shows vehicle movements in real-time. Will be helpful to have this feature for connecting with websockets or MQTT.

Nikhil-Nandagopal commented 5 months ago

@SrijitaRoy913 this is now possible. We have a guide for this here https://docs.appsmith.com/build-apps/how-to-guides/set-up-websockets

SrijitaRoy913 commented 5 months ago

Thanks for adding the feature!