hagsteel / swampdragon

swampdragon
Other
557 stars 74 forks source link

how to subscribe to data published outside of route? #187

Open mfyang opened 8 years ago

mfyang commented 8 years ago
from swampdragon.pubsub_providers.data_publisher import publish_data
publish_data('geo', {'k':'vavc'})

this channel does not have a route, but on the javascript side, subscribe require route as parameter.

AlexejStukov commented 8 years ago

Hello @mfyang, you have to subscribe to 'geo'. Look at this example in the swampdragon documentation for details.