class XMPP::Router
- XMPP::Router
- Reference
- Object
Defined in:
Constructors
Instance Method Summary
- #iq(handler : Callback)
- #iq(&handler : Callback)
- #match(p : Stanza::Packet)
- #message(handler : Callback)
- #message(&handler : Callback)
-
#on(name : String, &handler : Callback)
on registers a new route with a matcher for a given packet name (iq, message, presence)
- #on(name : String, handler : Callback)
- #presence(handler : Callback)
- #presence(&handler : Callback)
-
#route(&handler : Callback)
route register an empty routes
- #route(handler : Callback)
-
#when(*type : String, &handler : Callback)
when registers a new route with a matcher for a given packet type
- #when(*type : String, handler : Callback)
Constructor Detail
Instance Method Detail
on registers a new route with a matcher for a given packet name (iq, message, presence)
when registers a new route with a matcher for a given packet type