crossbario / autobahn-python

WebSocket and WAMP in Python for Twisted and asyncio
https://crossbar.io/autobahn
MIT License
2.48k stars 768 forks source link

unable to connect using rawsocket #1575

Closed ninousf closed 2 years ago

ninousf commented 2 years ago

version: 22.5.1.dev1

` from autobahn.asyncio.component import Component, run

def main(wamp_host, wamp_realm): comp = Component( transports=[ dict(type='rawsocket', url=f'rs://{wamp_host}:8081', serializer = 'msgpack', )], realm=wamp_realm, ) run([comp])

if name == "main": main('localhost', 'toto') ` failed: AttributeError: 'WampRawSocketClientProtocol' object has no attribute 'transport_details'

ok, ok , i add some empy details

`from autobahn.asyncio.component import Component, run

def main(wamp_host, wamp_realm): comp = Component( transports=[ dict(type='rawsocket', url=f'rs://{wamp_host}:8081', serializer = 'msgpack', transport_details = {}, )], realm=wamp_realm, ) run([comp])

if name == "main": main('localhost', 'toto') ` failed ValueError: 'transport_details' is not a valid configuration item

:(