Client - TCP Transport
The TransportTCP
implements the RSocket protocol using the TCP network transport protocol,
and is suitable for Server to Server, and other scenarios where raw TCP is available.
TCP Client Quick Start Example
import asyncio
from rsocket.rsocket_client import RSocketClient
from rsocket.transports.tcp import TransportTCP
from rsocket.helpers import single_transport_provider
async def main():
connection = await asyncio.open_connection('localhost', 6565)
async with RSocketClient(single_transport_provider(TransportTCP(*connection))) as client:
... # Execute requests
if __name__ == '__main__':
asyncio.run(main())