Closed KATT closed 8 months ago
.listen() currently loops forever AFAICT and I can't find any way of stopping it which likely[^1] leads to non-graceful shutdowns.
.listen()
It'd be nice if the SDK would be
const rpc = new RetoolRPC({ // [...] }); console.log('Connecting to Retool....'); const stop = await rpc.listen(); console.log('Listening on Retool'); await stop(); console.log('Retool stopped listening');
[^1]: I'm still evaluating if we should be using Retool RPC or continue how we're doing stuff now so I'm not sure it leads to a non-graceful shutdown
Noted, will work on adding a stop mechanism soon.
stop
As I mentioned here, it'd be even nicer if it was webhook/push based so we wouldn't have to care about state at all
What
.listen()
currently loops forever AFAICT and I can't find any way of stopping it which likely[^1] leads to non-graceful shutdowns.How
It'd be nice if the SDK would be
[^1]: I'm still evaluating if we should be using Retool RPC or continue how we're doing stuff now so I'm not sure it leads to a non-graceful shutdown