I'm adding websocket support to a console-mode application ( https://github.com/tangentstorm/jprez ) that has its own event loop.
I need a way to have the websocket event loop and the j-kvm event loop run simultaneously.
It seems like adding a call to a handler verb (ws_onstep perhaps) inside `initrun might be the simplest way to do this.
Alternately, we could break initrun into separate setup, step, and teardown verbs that could be called by programs with their own event loops.
Do you have a preference?
(I am probably going to just monkey-patch initrun to call a ws_onstep for now, but I'd like to find an official way to do this.)
I'm adding websocket support to a console-mode application ( https://github.com/tangentstorm/jprez ) that has its own event loop.
I need a way to have the websocket event loop and the j-kvm event loop run simultaneously.
It seems like adding a call to a handler verb (
ws_onstepperhaps) inside `initrun might be the simplest way to do this.Alternately, we could break
initruninto separatesetup,step, andteardownverbs that could be called by programs with their own event loops.Do you have a preference?
(I am probably going to just monkey-patch
initrunto call aws_onstepfor now, but I'd like to find an official way to do this.)