class documentation
class Client: (source)
Undocumented
Method | __post |
Undocumented |
Method | add |
Adds an event listener callback for the provided event name. Events sent from client and from the server connection will be dispatched to the listener |
Method | close |
Close the client connection |
Method | open |
Open the client connection |
Method | remove |
Removes an event listener callback for the provided event name if it has been registered |
Method | send |
Sends an event to the server |
Class Variable | address |
Undocumented |
Class Variable | auto |
Undocumented |
Class Variable | port |
Undocumented |
Class Variable | remote |
Undocumented |
Class Variable | start |
Undocumented |
Property | is |
Whether the client is connected |
Property | origin |
The origin of the server |
Method | _dispatch |
Undocumented |
Method | _post |
Undocumented |
Instance Variable | _closed |
Undocumented |
Instance Variable | _connected |
Undocumented |
Instance Variable | _listeners |
Undocumented |
Instance Variable | _subscription |
Undocumented |
Instance Variable | _thread |
Undocumented |
Adds an event listener callback for the provided event name. Events sent from client and from the server connection will be dispatched to the listener
Parameters | |
eventstr | the event name |
listener:t.Callable | the listener callback |
Removes an event listener callback for the provided event name if it has been registered
Parameters | |
eventstr | the event name |
listener:t.Callable | the listener callback |