SockJS & Websocket on iOS & Android

1,705 views
Skip to first unread message

Gary Miller

unread,
Oct 4, 2012, 3:10:58 AM10/4/12
to ve...@googlegroups.com
I am having trouble getting the event bridge to work with mobile devices.
I have tried the eventbus and websockets examples, which I can get to work on desktop browsers. 

Any one having success and can give me some pointers would be appreciated.

Thanks
Gary

bytor99999

unread,
Oct 4, 2012, 11:29:40 AM10/4/12
to ve...@googlegroups.com
We would need more information. Like what type of mobile devices? What are their browsers? Are you using straight HTML5 Web Sockets or trying to use SockJS or socket.io?

Are you using the exact same html/javascript on the desktop browser and mobile browser?

So maybe have to post code.

Thanks

Mark

Gary Miller

unread,
Oct 4, 2012, 8:37:35 PM10/4/12
to ve...@googlegroups.com
Thanks for the responses on and off list.

As I mentioned, I literally took the examples distributed with Vertx and ran them.
Specifically the eventbus examples with uses SockJS as the client and the websockets example.
I confirmed that they work as expects on Firefox and Chrome on my desk top.

I have tried;
- Safari iPhone 3GS, run iOS 4.3
- Chrome iPhone 3GS, run iOS 4.3
- Safari iPhone 4S, run iOS5
- Chrome on a Galaxy (something)
- Safari iPad, run iOS5

The eventbus page would not connect.
The websockets page flashed and then alerted socket closed.

All the browsers I have tried pass the http://websocketstest.com/ page.

I am a coder that generally sticks to the backend, and hence asking for "noob" pointers.
- Do I need to modify the html to enable something on mobile clients?
- What is the best way to debug this, and what output should I post?
- Should I be trying socket.io as it explicitly mentions mobile browser support where sockJS doesn't?
- Does socket.io or sockJS have more active developer communities?
- Anyone have working code using socket.io as an event bridge.

Thanks
Gary
Reply all
Reply to author
Forward
0 new messages