class XMPP::Router

Defined in:

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Instance Method Detail

def iq(handler : Callback) #

def iq(&handler : Callback) #

def match(p : Stanza::Packet) #

def message(handler : Callback) #

def message(&handler : Callback) #

def on(name : String, &handler : Callback) #

on registers a new route with a matcher for a given packet name (iq, message, presence)


def on(name : String, handler : Callback) #

def presence(handler : Callback) #

def presence(&handler : Callback) #

def route(&handler : Callback) #

route register an empty routes


def route(handler : Callback) #

def when(*type : String, &handler : Callback) #

when registers a new route with a matcher for a given packet type


def when(*type : String, handler : Callback) #