API Documentation¶
Message¶
-
class
shout.Message(*args, **kwargs)¶ Messages keep track of their listeners and the various rooms they are listening to. Instances ofMessagehold 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 correctlysuccessis set to True. Any Exception raised by a listener will halt the shout after bindingexcto 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.