API Documentation¶
Message¶
-
class
shout.
Message
(*args, **kwargs)¶ Message
s keep track of their listeners and the various rooms they are listening to. Instances ofMessage
hold args and kwargs and whenshout()
is called these are passed to all the appropraite listeners. All return values of listeners are collected inresponse
. If all listeners execute correctlysuccess
is set to True. Any Exception raised by a listener will halt the shout after bindingexc
to the offending Exception.Parameters: - args – Arguments to shout
- kwargs – Keyword Arguments to shout
-
static
create
(name)¶ Dynamically create a new type of
Message
.Parameters: name – The __class__.__name__ to use.
-
shout
()¶ Sends the instances args and kwargs to the appropriate listeners.