Re: Support JavaScript command shells (without a Baja-compiled .bin file
By: Nightfox to Digital Man on Tue Feb 21 2023 09:38 am
Re: Support JavaScript command shells (without a Baja-compiled .bin file
By: Digital Man to Eric Oulashin on Tue Feb 21 2023 12:11 am
I just updated and rebuilt, to make use of my JS command shell without
needing the Baja wrapper. I've noticed I can't log out now.. At the
That all sounds like expected behavior.
I'd reply on in GitLab, but I don't see this comment on gitlab now. You delete it?
Yes, I deleted my comment because I found that adding a bbs.hangup(); allowed it to disconnect the user.
It's a different behavior though. When using a Baja wrapper for a JS command shell, the user would be disconnected when the Baja wrapper was done running (which happened when the JS script was finished).
Yes, that's true (previously, if the JS terminated, the user was disconnected/logged-off), but that meant that any error in the JS would cause the session to terminate.
Use bbs.logoff() for a normal graceful user log-off or bbs.hangup() for immediate disconnect and logoff. bbs.logout() is called automatically for you, you don't need to call it explicitly.
--
digital man (rob)
Breaking Bad quote #12:
[Walt] Looks like Keith Richards with a glass a warm milk! - Hank Schrader Norco, CA WX: 61.6øF, 46.0% humidity, 0 mph ENE wind, 0.00 inches rain/24hrs ---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net