Higher-level init function #1020
Replies: 2 comments 6 replies
-
Would be nice to have convenience functions for this (and for handling the auth reconnect). |
Beta Was this translation helpful? Give feedback.
-
Hi @KyleAMathews, Does this make sense? Regards, |
Beta Was this translation helpful? Give feedback.
-
There's more concerns accumulating for initing & maintaining a connection to Electric from the client e.g. picking a db name, and creating the client and now as of 0.9.4, connecting and re-connecting on the token expiring. This is what my initElectric function looks like — KyleAMathews/electric-query@8721875
It seems like these concerns could be pulled into electric itself as most everyone would do the same thing?
Beta Was this translation helpful? Give feedback.
All reactions