You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using RawSocket on the Component API, and closing the component's session from user code in an orderly fashion, no automatic reconnection attempts should happen.
importasyncioimporttimefromautobahn.asyncioimportcomponent# works as expectedtransports=dict(
type='websocket',
url='ws://127.0.0.1:8080/ws',
)
# doesn't work properlytransports=dict(
type='rawsocket',
url='rs://127.0.0.1:8081',
)
comp=component.Component(
transports=transports,
)
@comp.on_joinasyncdef_(session, details):
awaitasyncio.sleep(2)
awaitcomp.stop()
component.run([comp])
When using RawSocket on the Component API, and closing the component's session from user code in an orderly fashion, no automatic reconnection attempts should happen.
Original issue from OP on forum https://forum.crossbar.io/t/howto-ask-a-component-to-close-cleanly/2077
The text was updated successfully, but these errors were encountered: