o
    i                     @   s0   d dl mZmZ d dlmZ G dd deZdS )    )ABCabstractmethod)Anyc                   @   sb   e Zd ZU dZeed< edd Zedd Zede	dd	fd
dZ
ede	dedd	fddZd	S )KernelWebsocketConnectionABCz
    This class defines a minimal interface that should
    be used to bridge the connection between Jupyter
    Server's websocket API and a kernel's ZMQ socket
    interface.
    websocket_handlerc                       dS )z:Connect the kernel websocket to the kernel ZMQ connectionsN selfr   r   i/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/jupyter_server/services/kernels/connection/abc.pyconnect      z$KernelWebsocketConnectionABC.connectc                    r   )z?Disconnect the kernel websocket from the kernel ZMQ connectionsNr   r	   r   r   r   
disconnect   r   z'KernelWebsocketConnectionABC.disconnectincoming_msgreturnNc                 C      dS )zEBroker the incoming websocket message to the appropriate ZMQ channel.Nr   )r
   r   r   r   r   handle_incoming_message      z4KernelWebsocketConnectionABC.handle_incoming_messagestreamoutgoing_msgc                 C   r   )z5Broker outgoing ZMQ messages to the kernel websocket.Nr   )r
   r   r   r   r   r   handle_outgoing_message   r   z4KernelWebsocketConnectionABC.handle_outgoing_message)__name__
__module____qualname____doc__r   __annotations__r   r   r   strr   listr   r   r   r   r   r      s   
 

r   N)abcr   r   typingr   r   r   r   r   r   <module>   s    