pyphoenix.socket
Socket and WebSocket transport implementation for PyPhoenix.
Classes
|
Represents a client connection to the Phoenix server. |
|
WebSocket transport for handling client connections. |
- class pyphoenix.socket.Socket(websocket=None, phoenix_app=None)[source]
Represents a client connection to the Phoenix server.
Handles WebSocket communication, channel management, and message routing.
- Parameters:
websocket (
Optional[ServerConnection])
- __init__(websocket=None, phoenix_app=None)[source]
Initialize a socket connection.
- Parameters:
websocket (
Optional[ServerConnection]) – The WebSocket connection (None for testing)phoenix_app – Phoenix application instance for routing
- class pyphoenix.socket.WebSocketTransport(host='localhost', port=4000)[source]
WebSocket transport for handling client connections.