Closed canadaduane closed 2 years ago
Also, a nice additional benefit of this system is that the callback need not send out to an external URL--it could just connect directly to a DB and store the results.
Hey @canadaduane, I like the change.
The change doesn't look dangerous. But could you please test if the server is still running when:
callbackHandler
in setupWsConnection
)CALLBACK_URL
environment URLI'd be happy to merge and publish a new release after you tested the above cases. Thanks!
Unfortunately, the server doesn't have any tests yet. Would be nice to change that at some point.
Sure! I did lightly test a couple of these cases, but I will be more thorough & get back to you.
I proposed the following question in #60:
This PR represents an attempt at this, by making
callbackHandler
a parameter that can be passed in to setupWSConnection. If none is provided, but env vars such as CALLBACK_URL etc. are given, then the "default callbackHandler" is used, as before.Would this be a good way forward?
Huly®: YJS-763