on: Function to add an event listener

Description Usage Arguments See Also

View source: R/listener_core.R

Description

Function to add an event listener

Usage

1
on(jug, event, func, ...)

Arguments

jug

the jug instance

event

the event to bind to (one of start, finish or error)

func

the function to pass the req, res, err and (if error event) the err_msg to

...

extra arguments to pass to the listener function

See Also

post, put, delete, use, ws


Bart6114/jug documentation built on May 5, 2019, 10:26 a.m.