python - Autobahn Websocket: listen to local port and transfer messages to clients connected to a public port -
i'am new autobahn , websockets. i'm trying build following setup:
processing service (java based blackbox):
- waits data twitter's streaming api
- if new messages recieved, message send mainservice (ws://localhost:9999) {id, latitude, longitude}
- does magic processing data (which can take few minutes)
mainservice listening on ws://localhost:9999 incomming messages processing service
- if message comes in (from processing service), broadcasted clients connected on ws://:9000
javascript clients connected mainservice on ws://:9000 displaying messages on map
is possible write mainservice autobahn listening on 1 port , delivering messages on port? (from performance view might better combine processing , mainservice...but shouldn't point here.)
sure, can run multiple services on different ports or can run multiple services on 1 port. latter, see here. former, create multiple factories , call listenws
multiple times.
Comments
Post a Comment