Package lacewing :: Module client :: Class ClientChannel
[frames] | no frames]

Class ClientChannel

source code

object --+
         |
        ClientChannel

Represents a server channel.

Instance Methods
 
__init__(self, user)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
sendMessage(self, message, subchannel, typeName=None, asObject=False, asDatagram=False)
Send a message to the channel
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  user = None
hash(x)
Instance Variables
  id = None
The ID of the channel.
  name = None
The name of the channel.
  connections
A dict of signed on connections.
Properties

Inherited from object: __class__

Method Details

__init__(self, user)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

sendMessage(self, message, subchannel, typeName=None, asObject=False, asDatagram=False)

source code 

Send a message to the channel

Parameters:
  • subchannel - The subchannel of the message in the range 0-256
  • typeName - If not specified, the type will be automatically detected (see lacewing.packetloaders.common.DATA_TYPES for possible values)
  • message (str/number/ByteReader)