Minimal example of running tcp server and wamp component in the same asyncio event loop
# run crossbar router
docker run -it -p 8080:8080 crossbario/crossbarRun tcp to wamp:
python tcp_to_wamp.pyThis will connect to crossbar router and create a tcp server. Messages send to the tcp server will be published to crossbar router.
Run the wamp listener:
python wamp_listener.pyThis will listen to incoming wamp messages.
Run the tcp sender:
python tcp_sender.pyThis will send a message over tcp to the server running in tcp_to_wamp.py.
The tcp messages will be received by the server of tcp_to_wamp.py and then published
to the crossbar router. wamp_listener.py receives these messages.