WAMP over XmlHttpRequest

#1

Hi guys!

It’s probably a dumb idea - but is there a possibility of using HTTP via XmlHttpRequest as a transport for WAMP? Obviosly, PubSub can’t be supported, but what about RPC?

I haven’t dug into WAMP specifics, and the spec says WAMP needs reliable, ordered full-duplex channel, but I’m wondering how complicated it would be?

My use case is to replace JSON-RPC in certain scenarios where I have to support both (since WebSockets support is still not universal with web browsers).

Thanks…

0 Likes

#2

Hi guys!

It's probably a dumb idea - but is there a possibility of using HTTP via
XmlHttpRequest as a transport for WAMP? Obviosly, PubSub can't be
supported, but what about RPC?

I haven't dug into WAMP specifics, and the spec says WAMP needs
reliable, ordered full-duplex channel, but I'm wondering how complicated
it would be?

My use case is to replace JSON-RPC in certain scenarios where I have to
support both (since WebSockets support is still not universal with web
browsers).

IE8+ can do WebSocket with Flash, and IE6+ can do WebSocket with Chrome Frame. Other browsers such as Chrome, FF, Safari, Opera natively support WS.

I'd go with a WS shim/polyfill, like i.e.

https://github.com/LearnBoost/engine.io

That provides transports:

     polling: XHR / JSONP polling transport.
     websocket: WebSocket transport.
     flashsocket: WebSocket transport backed by flash.

···

Am 06.02.2013 01:28, schrieb Karlo L.:

Thanks...

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Likes