Has any used autobahn.js successfully in a Windows 8 Store app?

#1

I am an amateur programmer and have had some success with autobahn.js and autobahn as a python server. However, when I attempt to use autobahn.js from a “Windows 8 Store” app I get “Connection down.”

I know the server is up, because I can run my webapp from the same machine. Just wondering if Windows 8 store apps are known to work with autobahn or not.

0 Likes

#2

I am an amateur programmer and have had some success with autobahn.js
and autobahn as a python server. However, when I attempt to use
autobahn.js from a "Windows 8 Store" app I get "Connection down."

From whom do you get "Connection down"? In which browser?

I know the server is up, because I can run my webapp from the same
machine. Just wondering if Windows 8 store apps are known to work with
autobahn or not.

Being able to run something on loopback does not mean it'll work remotely, because you then have a network and potential intermediaries in between.

However, packaging JS/HTML stuff up into a "Windows 8 store app" shouldn't change anything. It's still the same JS that runs. I assume you are targeting IE10?

···

Am 01.03.2013 12:54, schrieb Darrell Golliher:

--
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

#3

I am an amateur programmer and have had some success with autobahn.js

and autobahn as a python server. However, when I attempt to use

autobahn.js from a “Windows 8 Store” app I get “Connection down.”

From whom do you get “Connection down”? In which browser?

First, thank you for the response. :slight_smile: I get “Connection down” in the javascript error console of Visual Studio Express 2012 for a simple WIndows 8 app built using their javascript/HTML/CSS framework. I think it’s like IE10, but I already had to get a special windows8 version of JQuery so there must be some differences. I am starting to suspect that while websockets work, their innvocation might be different. The Microsoft docs say something about choosing between MessageWebSocket and StreamWebSocket and my naive read through autobahn.js makes me think the standard browser call might just be Websocket.

FWIW, here’s the documentation I’m currently puzzling my way through… http://msdn.microsoft.com/en-us/library/windows/apps/hh761443.aspx

I know the server is up, because I can run my webapp from the same

machine. Just wondering if Windows 8 store apps are known to work with

autobahn or not.

Being able to run something on loopback does not mean it’ll work
remotely, because you then have a network and potential intermediaries
in between.

Sorry, I failed to explain clearly. My server is on a remote machine (in fact it is a RasberryPi runnig a flavor of debian). I have a pure web application that runs in standard browsers and connects to that autobahn capable python server. When I run my webclient on the Windows8 Surface Pro it connects to the server on the RaspberryPi just fine. When I run that same code from within the windows8 application I get the “Connection down.” in the javascript error console.

However, packaging JS/HTML stuff up into a “Windows 8 store app”
shouldn’t change anything. It’s still the same JS that runs. I assume
you are targeting IE10?

Yeah, that’s the mystery… I’m not sure if there is some Microsoft magic getting in the way or if I’m just doing something wrong that i haven’t figure out yet. If someone else had used autobahn.js from within a Windows 8 app, then at least I’d know it’s not pointless to keep trying to make it work.

tia,

···

On Friday, March 1, 2013 1:06:49 PM UTC-5, Tobias Oberstein wrote:

Am 01.03.2013 12:54, schrieb Darrell Golliher:

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

#4

     > I am an amateur programmer and have had some success with
    autobahn.js
     > and autobahn as a python server. However, when I attempt to use
     > autobahn.js from a "Windows 8 Store" app I get "Connection down."

      From whom do you get "Connection down"? In which browser?

First, thank you for the response. :slight_smile: I get "Connection down" in the
javascript error console of Visual Studio Express 2012 for a simple
WIndows 8 app built using their javascript/HTML/CSS framework. I think
it's like IE10, but I already had to get a special windows8 version of
JQuery so there must be /some/ differences. I am starting to suspect

this totally sucks. MS seem to have (again) created proprietory APIs for stuff that is openly and well specified (HTML5).

that while websockets work, their innvocation might be different. The
Microsoft docs say something about choosing between MessageWebSocket and
StreamWebSocket and my naive read through autobahn.js makes me think the
standard browser call might just be Websocket.

AutobahnJS uses the WHATWG/HTML5 specified API for WebSocket that works in all modern browsers (including IE10).

  FWIW, here's the documentation I'm currently puzzling my way
through.. http://msdn.microsoft.com/en-us/library/windows/apps/hh761443.aspx

If that is the only API avail (and not also the standard HTML5 one) then AutobahnJS will not work. It doesnt seem to be a lot of work to make it happen, but I have zero motivation to support this MS proprietory stuff currently.

     > I know the server is up, because I can run my webapp from the same
     > machine. Just wondering if Windows 8 store apps are known to
    work with
     > autobahn or not.

    Being able to run something on loopback does not mean it'll work
    remotely, because you then have a network and potential intermediaries
    in between.

    Sorry, I failed to explain clearly. My server is on a remote
machine (in fact it is a RasberryPi runnig a flavor of debian). I have
a pure web application that runs in standard browsers and connects to
that autobahn capable python server. When I run my webclient on the
Windows8 Surface Pro it connects to the server on the RaspberryPi just
fine. When I run that same code from within the windows8 application I
get the "Connection down." in the javascript error console.

    However, packaging JS/HTML stuff up into a "Windows 8 store app"
    shouldn't change anything. It's still the same JS that runs. I assume
    you are targeting IE10?

Yeah, that's the mystery.. I'm not sure if there is some Microsoft magic
getting in the way or if I'm just doing something wrong that i haven't
figure out yet. If someone else had used autobahn.js from within a
Windows 8 app, then at least I'd know it's not pointless to keep trying
to make it work.

If you are further interested in this stuff, I'd ask on stackoverflow if it is really the case that W8 store apps _only_ support their proprietory WS APIs or also the HTML5 one.

···

Am 01.03.2013 20:10, schrieb Darrell Golliher:

On Friday, March 1, 2013 1:06:49 PM UTC-5, Tobias Oberstein wrote:
    Am 01.03.2013 12:54, schrieb Darrell Golliher:

tia,

     >
     > --
     > 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 autobah...@googlegroups.com <javascript:>.
     > For more options, visit https://groups.google.com/groups/opt_out
    <https://groups.google.com/groups/opt_out>.
     >

--
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

#5

the following seems to imply that the standard WS API should be avail to Windows store apps too:

http://msdn.microsoft.com/en-us/library/ie/hh673567(v=vs.85).aspx

"WebSocket support

Internet Explorer 10 and Windows Store apps using JavaScript add support for the WebSocket API as defined in the W3C's HTML5 specification on the WebSocket API, which is currently in the Working Draft stage."

is it possible to test Windows store apps only with VS 2012 but without a W8 device and without submitting the app to the MS store?

can you put up your (client) code somewhere .. ie github?

0 Likes

#6

I figured out my problem. Like you, I eventually found documentation stating that HTML5 WebSockets are fully supported by Windows Store Apps so I kept trying.

Windows Store Apps have a manifest that defines properties for the application. Access to the network is one of those properties. Even though I had enabled “Internet (Client)” I was still in fact being blocked by the application framework because my server was running on a private network (192.168.X.X). To connect to a private network the app manifest also has to have the capability "Private Networks (Client & Server) checked.

So I can happily report that autobahn.js does work in Windows Store apps.

···

On Friday, March 1, 2013 4:55:03 PM UTC-5, Tobias Oberstein wrote:

the following seems to imply that the standard WS API should be avail to
Windows store apps too:

http://msdn.microsoft.com/en-us/library/ie/hh673567%28v=vs.85%29.aspx

"WebSocket support

Internet Explorer 10 and Windows Store apps using JavaScript add support
for the WebSocket API as defined in the W3C’s HTML5 specification on the
WebSocket API, which is currently in the Working Draft stage."

is it possible to test Windows store apps only with VS 2012 but without
a W8 device and without submitting the app to the MS store?

can you put up your (client) code somewhere … ie github?

0 Likes

#7

great! thanks for sharing that info and hints what needs to be done.

Tobias

···

Am 02.03.2013 13:30, schrieb Darrell Golliher:

I figured out my problem. Like you, I eventually found documentation
stating that HTML5 WebSockets are fully supported by Windows Store Apps
so I kept trying.

Windows Store Apps have a manifest that defines properties for the
application. Access to the network is one of those properties. Even
though I had enabled "Internet (Client)" I was still in fact being
blocked by the application framework because my server was running on a
private network (192.168.X.X). To connect to a private network the
app manifest also has to have the capability "Private Networks (Client &
Server) checked.

So I can happily report that autobahn.js does work in Windows Store apps.

0 Likes