class documentation
class Session(object):
A session and the number of clients connected to it, as returned by the server.
Method | __eq__ |
Compares the instance for equality with an object. |
Method | __init__ |
Undocumented |
Method | __ne__ |
Compares the instance for equality with an object. |
Method | __repr__ |
Undocumented |
Method | __str__ |
Returns the nicely printable string representation of this instance. |
Method | is |
Whether the session has at least one subscriber |
Property | name |
Property: The name of the session |
Property | subscriber |
Property: The number of subscribers to this session, as returned by the server on the last call to Sessions.available or Sessions.active . |
Instance Variable | _name |
Undocumented |
Instance Variable | _subscriber |
Undocumented |
def __eq__(self, other):
Compares the instance for equality with an object.
- if the object is a str, then it is compared with the name of this instance.
- if the object is a
Session
, then its name is compared with the name of this instance. - Otherwise the behavior is unspecified.
def __ne__(self, other):
Compares the instance for equality with an object.
- if the object is a str, then it is compared with the name of this instance.
- if the object is a
Session
, then its name is compared with the name of this instance. - Otherwise the behavior is unspecified.
Parameters | |
other:object | Undocumented |
Returns | |
bool | Undocumented |
def __str__(self):
Returns the nicely printable string representation of this instance.
Returns | |
str | Undocumented |
@property
subscriber_count =
subscriber_count =
Property: The number of subscribers to this session, as returned by the server on the last call to Sessions.available
or Sessions.active
.