class documentation

class Session(object):

View In Hierarchy

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_active Whether the session has at least one subscriber
Property name Property: The name of the session
Property 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.
Instance Variable _name Undocumented
Instance Variable _subscriber_count 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 __init__(self, session):

Undocumented

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:objectUndocumented
Returns
boolUndocumented
def __repr__(self):

Undocumented

def __str__(self):

Returns the nicely printable string representation of this instance.

Returns
strUndocumented
def is_active(self):

Whether the session has at least one subscriber

@property
name =

Property: The name of the session

@property
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.

_name =

Undocumented

_subscriber_count =

Undocumented