_hyperscript icon indicating copy to clipboard operation
_hyperscript copied to clipboard

Calling functions from eventsource

Open tomberek opened this issue 3 years ago • 0 comments

Functions and events defined in a _= block using eventsource does not have access to "me" and the locally defined functions and variables.

<div _="
def thing()
   log 1
end
eventsource Stream from /stream
  on message
    log it
    call thing()
  end
end
"></div>

tomberek avatar Jan 17 '22 21:01 tomberek