oursin.client

Client for communicating with the echo server

Functions

change_id

Change the ID used to connect to the echo server

close

Disconnect from the echo server

connect

connected

disconnect

message

Classes

bcolors

class bcolors[source]

Bases: object

WARNING = '\x1b[93m'
FAIL = '\x1b[91m'
connect()[source]
disconnect()[source]
message(data)[source]
connected()[source]
close()[source]

Disconnect from the echo server

change_id(newID)[source]

Change the ID used to connect to the echo server

Parameters

newIDstring

New ID to connect with