I just finished the graphic interface of my irc client for the school. Now I need to find the part of the library of twisted the way to get message from server. I found https://twisted.readthedocs.io/en/latest/words/... ... is any function to listen to irc server implemented in twisted,
yuhl joined the channel
sphet joined the channel
sphet
Hello - wonder if someone can point me in the right direction: I am trying to find the right way to model this use case: I have Python-Eve (a flask based app) publishing endpoints for mongoDB. I would like to have a websocket event system to allow people to register for notification when specific endpoints would yield more data.
So when a PUT is performed on the endpoint, it signals that new data is available via the event, or even just pushes the data out to those listening.
sphet: How are you? What you've proposed sounds reasonable enough - but what exactly is your question?
sphet
jMyles: Thanks for your time! I guess my question is - where do I start? Currently I have a flask-based app running eve that is being run through twisted via a WSGIResource. I don't know how to add the websocket part along side that, nor the best way to interop between the blocking flask handlers and the async websocket elements.
jMyles: I can't believe I just said "Where do I start?" - the curse of help boards. I actually am farther along than 'starting'.
jMyles
sphet: :-)
sphet: One way or another, the answer to your question probably involves Autobahn.
sphet
jMyles: We're coming from the environment of using buildbot, which uses autobahn and twisted. We would like to use similar technology since it is already installed in our environment and we know a bit about it.
jMyles: That was my suspicion.
jMyles
sphet: Personally, I prefer a project that I maintain called hendrix.
jMyles: does it run just as well under Windows as unix? We deploy to unix but develop under windows (long story on that)
jMyles
I... can't say I'm sure about that. I... think so?
sphet
jMyles :)
jMyles: I will gladly look into it. I was thinking of trying to use Autobahn but I became confused about whether I need a WAMP router and crossbar.io and then got lost in understanding what those thingsare.
jMyles
hendrix uses Autobahn for native websockets (and can use txsockjs for JS websockets / long-polling, but I don't recommend that anymore).
clokep_tb has quit
itamar has quit
sphet
jMyles: Can you give me 5 second WAMP/crossbar router overview?
Do I need to be running crossbar?
itamar joined the channel
LichtMacher joined the channel
clokep_tb joined the channel
jMyles
sphet: Nope!
Although you might want to for your own reasons.
sphet: If you are going to use hendrix, I suggest starting with tags/3.0.0rc1
That will be released on PyPI within a couple weeks.
sphet
great thanks so much for your help
jMyles
I'm actually interested in any thoughts that anybody in this channel might have about a different issue in hendrix:
Basically, I had to write my own tooling to do curve selection (and to set an EC key in PyOpenSSL). Does this stuff belong in twisted instead of hendrix?
clokep_tb has quit
rthille-ciena joined the channel
meejah
sphet: the Autobahn library supports WebSockets *and* WAMP -- they're two different things
WAMP can use WebSockets (or other transports) and does PubSub and RPC. To use WAMP you need a router (crossbar.io is one)
if you're just using plain WebSockets you don't need crossbar.io
sphet
meejah: But if I want a pub/sub system I can roll my own I guess.
meejah
sphet: you can roll your own, sure, or use WAMP (with crossbar.io for example)
sphet
meejah: I need some mechanism for cleints to subscribe to the data and publish the events back.
meejah
sounds like a good use-case for publish/subscribe for sore