This PR enhances the type hinting of the connect method in websocket_api.py to return SolanaWsClientProtocol instead of the general WebSocketClientProtocol. This change helps improve IDE support and developer experience by enabling better autocompletion and type checking for specific methods like logs_subscribe that are available on SolanaWsClientProtocol.
This addresses the issue #434 where there was a lack of autocompletion support in IDEs due to incorrect type hinting.
This PR enhances the type hinting of the
connect
method inwebsocket_api.py
to returnSolanaWsClientProtocol
instead of the generalWebSocketClientProtocol
. This change helps improve IDE support and developer experience by enabling better autocompletion and type checking for specific methods likelogs_subscribe
that are available onSolanaWsClientProtocol
.This addresses the issue #434 where there was a lack of autocompletion support in IDEs due to incorrect type hinting.