WSRoute
a WebSocket route entry. The handler receives a WSEvent,
the captured path parameters, and a WebSocket handle for sending
responses.
handler
(Fn [(Ref WSRoute a)] (Ref (Fn [(Ref WSEvent b), (Ref (Map String String) c), (Ref WebSocket d)] ()) a))
gets the handler property of a WSRoute.
init
(Fn [String, (Fn [(Ref WSEvent a), (Ref (Map String String) b), (Ref WebSocket c)] ())] WSRoute)
creates a WSRoute.
set-handler
(Fn [WSRoute, (Fn [(Ref WSEvent a), (Ref (Map String String) b), (Ref WebSocket c)] ())] WSRoute)
sets the handler property of a WSRoute.
set-handler!
(Fn [(Ref WSRoute a), (Fn [(Ref WSEvent b), (Ref (Map String String) c), (Ref WebSocket d)] ())] ())
sets the handler property of a WSRoute in place.
set-pattern!
(Fn [(Ref WSRoute a), String] ())
sets the pattern property of a WSRoute in place.
update-handler
(Fn [WSRoute, (Ref (Fn [(Fn [(Ref WSEvent a), (Ref (Map String String) b), (Ref WebSocket c)] ())] (Fn [(Ref WSEvent a), (Ref (Map String String) b), (Ref WebSocket c)] ()) d) e)] WSRoute)
updates the handler property of a WSRoute using a function f.
update-pattern
(Fn [WSRoute, (Ref (Fn [String] String a) b)] WSRoute)
updates the pattern property of a WSRoute using a function f.