connection
framewise_meet_client.connection
WebSocketConnection
Manages WebSocket connection to the server.
Source code in framewise_meet_client/connection.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
|
__init__(host, port, meeting_id, api_key=None)
Initialize the connection.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
host
|
str
|
Server hostname |
required |
port
|
int
|
Server port |
required |
meeting_id
|
str
|
ID of the meeting to join |
required |
api_key
|
Optional[str]
|
Optional API key for authentication |
None
|
Source code in framewise_meet_client/connection.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
connect()
async
Connect to the WebSocket server.
Source code in framewise_meet_client/connection.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
|
disconnect()
async
Disconnect from the WebSocket server.
Source code in framewise_meet_client/connection.py
69 70 71 72 73 74 |
|
send(message)
async
Send a message to the server.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
Dict[str, Any]
|
JSON-serializable message to send |
required |
Source code in framewise_meet_client/connection.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
send_json(message)
async
Send a JSON serializable message to the server.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
JSON-serializable message to send |
required |
Source code in framewise_meet_client/connection.py
92 93 94 95 96 97 98 99 |
|
receive()
async
Receive a message from the server.
Returns:
Type | Description |
---|---|
Dict[str, Any]
|
Parsed JSON message from the server |
Source code in framewise_meet_client/connection.py
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
|