Skip to main content

IOWebsockets

A websocket input/output stream.
Initialize the websocket input/output stream.
Parameters:

Instance Attributes

websocket


The URI of the websocket server.

Instance Methods

get_default

Get the default input/output stream.
Returns:
IOStream: The default input/output stream.
Returns:

get_global_default

Get the default input/output stream.
Returns:
IOStream: The default input/output stream.
Returns:

input

Read a line from the input stream.
Parameters: Returns:

print

Print data to the output stream.
Parameters:

run_server_in_thread

Factory function to create a websocket input/output stream.
Parameters:

send

Send a message to the output stream.
Parameters:

set_default

Set the default input/output stream.
Parameters:

set_global_default

Set the default input/output stream.
Parameters: