Python|Autobahn - How to access websocket protocol instances created by websocket factory

#1

Hello,

Based on the Python|Autobahn WebSocket Server programming tutorial, ‘Whenever a new client connects to the server, a new protocol instance will be created and the autobahn.websocket.interfaces.IWebSocketChannel.onConnect() callback fires as soon as the WebSocket opening handshake is begun by the client.’

How do I access the protocol instance for each client that connects? I would like to explicitly disconnect certain clients if needed by calling sendClose for the specific protocol instance handling that client connection. Is this possible?

Thanks,

Jeremiah

0 Likes