Re: [Twisted-Python] Protocol for socket.io

2014-01-29 Thread Laurens Van Houtven
Hi Andrew, SockJS is a different project from socket.io; it just tries to solve a similar problem (WebSockets everywhere). If you literally need socket.io and not a similar thing in the same problem space, then SockJS will not help you. You can read about the spec for SockJS here: https://githu

Re: [Twisted-Python] Protocol for socket.io

2014-01-29 Thread Andrew Francis
Hi Laurens and Folks: Thanks for all the replies. I'll try desert-sockjs first. Looking through the documentation, it is not clear to me how I would handle socket.io events (unfortunately I am new to socket.io). There doesn't seem to be an event decorator like Socket.io for Tornadio2. I am look

Re: [Twisted-Python] Protocol for socket.io

2014-01-27 Thread Flavio Grossi
Laurens Van Houtven <_ lvh.io> writes: > > > Hi Andrew, > No idea about socket.io, but if you're free to pick whatever you want, and you just want "websockets, damnit!" then sockjs is actually better, and has excellent twisted support.hthlvh Agreed on using sockjs. There are at least two

Re: [Twisted-Python] Protocol for socket.io

2014-01-26 Thread Tobias Oberstein
Hi Laurens, >Hm. I can't find it in the current version. Either I am misremembering, or >they expect you to use the pubsub thing as an RPC mechanism somehow (i.e. the >room name is the procedure name). I see. Using PubSub to implement RPC seems hackish at best, if it works at all. E.g. how to

Re: [Twisted-Python] Protocol for socket.io

2014-01-26 Thread Laurens Van Houtven
Hi Tobias, Hm. I can't find it in the current version. Either I am misremembering, or they expect you to use the pubsub thing as an RPC mechanism somehow (i.e. the room name is the procedure name). hth lvh ___ Twisted-Python mailing list Twisted-Python

Re: [Twisted-Python] Protocol for socket.io

2014-01-26 Thread Tobias Oberstein
>socket.io adds a few things like "RPC support" and "pubsub", ... Do you have pointers for that? I can see socket.io supports "topic based pubsub" like functionality via "rooms" : https://github.com/LearnBoost/socket.io/wiki/Rooms What about RPC? /Tobias _

Re: [Twisted-Python] Protocol for socket.io

2014-01-26 Thread Laurens Van Houtven
On Sun, Jan 26, 2014 at 10:57 AM, Glyph wrote: > > Having had the life-transforming experience of supporting customers using > *Government-*Quality Web Middleware Server Hardware Firewallâ„¢, in a > pre-websockets world, with a two-way web application... > > No, no I probably wouldn't. > Hah; okay

Re: [Twisted-Python] Protocol for socket.io

2014-01-26 Thread Glyph
On Jan 26, 2014, at 1:53 AM, Laurens Van Houtven <_...@lvh.io> wrote: > you'd be amazed how much Enterprise Quality Web Middleware Server Hardware > Firewall(TM) screws up websocket connections Having had the life-transforming experience of supporting customers using Government-Quality Web Mid

Re: [Twisted-Python] Protocol for socket.io

2014-01-26 Thread Laurens Van Houtven
On Sun, Jan 26, 2014 at 10:46 AM, Glyph wrote: > It would be great if someone built a package to do this (more interop is > always better), but I think interest has generally fizzled on Socket.IO > implementations in the past because SockJS does pretty much exactly the > same thing, and as Lauren

Re: [Twisted-Python] Protocol for socket.io

2014-01-26 Thread Glyph
On Jan 25, 2014, at 12:21 PM, Dustin J. Mitchell wrote: > As I understand it, socket.io is a browser-side library that uses any > of a number of technologies, depending on its environment, to > communicate with the server. SSE, Websockets, and long polling are > all on the list. Last I looked,

Re: [Twisted-Python] Protocol for socket.io

2014-01-25 Thread Sofiane Akermoun
Hello, I looked for something that fit your needs few days ago and i came across txsockjs and i create a server based on twisted and the https://pypi.python.org/pypi/txsockjs module and i made it in few minutes. really good stuff. Of course the client part have to be written in javascript with sock

Re: [Twisted-Python] Protocol for socket.io

2014-01-25 Thread Dustin J. Mitchell
As I understand it, socket.io is a browser-side library that uses any of a number of technologies, depending on its environment, to communicate with the server. SSE, Websockets, and long polling are all on the list. Last I looked, though, I didn't see any support for the negotiation of which of t

Re: [Twisted-Python] Protocol for socket.io

2014-01-25 Thread Laurens Van Houtven
Hi Andrew, No idea about socket.io, but if you're free to pick whatever you want, and you just want "websockets, damnit!" then sockjs is actually better, and has excellent twisted support. hth lvh ___ Twisted-Python mailing list Twisted-Python@twistedm

[Twisted-Python] Protocol for socket.io

2014-01-25 Thread Andrew Francis
Hi: I searched the archive but couldn't find an answer so here goes: I am also new to all this I need to write a server that receives socket.io requests. I see Twisted has support for WebSocket. I also see that the Tornado2 socket.io is used alongside Twisted (I didn't know that this was possib