I have developed a plugin that adds some middleware. But if I try to call server.with-conn-and-ops-or-warn then it doesn't crash when the REPL isn't connected. So the call either results in a NOOP or it succeeds. It's random.
So I would like to have some kind of a way to know that it succeeded.
The callback would also be useful when Conjure decides to reconnect to a different REPL. It could notify the child plugins about it.
The alternative could be that I would try to brute-force that function until it "connects" but it's not a good thing to do.
I have developed a plugin that adds some middleware. But if I try to call
server.with-conn-and-ops-or-warnthen it doesn't crash when the REPL isn't connected. So the call either results in a NOOP or it succeeds. It's random.So I would like to have some kind of a way to know that it succeeded.
The callback would also be useful when Conjure decides to reconnect to a different REPL. It could notify the child plugins about it.
The alternative could be that I would try to brute-force that function until it "connects" but it's not a good thing to do.