I have an android application developed with IBM Worklight, in which a html file is making http request every 5 seconds and fetching the data from the server. Now I wish to replace this with HTML5 web sockets. But I wish to use the Worklight capabilities.
Is there anything like HTTP Adapter in Worklight for web socket?
If not could anyone please give any pointer about how to achieve it in worklight?
Is there anything like HTTP Adapter in Worklight for web socket?
No. At least to the best of my knowledge.
If not could anyone please give any pointer about how to achieve it in
worklight?
Web Sockets are not supported on Android (2.1-4.2): http://caniuse.com/#search=web%20sockets
However, you can try a Cordova Plugin like WebSocket-for-Android. There's a blog post that may help here. I just got those links for a quick Google Search.
Related
Sorry if this is a silly question. Has anyone managed to get the twilio stream to websocket working with SignalR (https://www.twilio.com/docs/voice/twiml/stream).
I have been trying for a while now and although I can see its hitting the server I never see it hit any of the methods.
Any help would be greatly appreciated
Thanks
Steve
I am just taking a look at Twilio Streams now that they've announced bidirectional support, I noticed that the docs indicate you have to utilize WebSockets. SignalR uses WebSockets but isn't just WebSockets. It's summed up succinctly in Jim Mc̮̑̑̑͒G's blog post How to save an audio file from Twilio Media streams to Azure storage
"SignalR is terrific, but it solves a different problem. SignalR can be thought of as a wrapper of several technologies - of which WebSockets represent a major component. It primarily serves the purpose of connecting web-browser clients to a back-end service. Other problems it solves include the maintenance of robust connections and the use of fallback techniques to enable browsers that don’t natively support WebSockets, to still benefit from real-time connections.
For Twilio Media Streams, we need to use WebSocket connections in a server-to-server configuration. SignalR isn’t the right tool for that job."
I want to automate REST API using Jmeter. My requirement is trigger and validate the signals generated from the field.Messages from the field like "communication lost" need to check whether this message reached API or not.These messages are developed using "signalr".Can anyone tell me how can i get the messages from signalr in Jmeter.
As per SignalR main page:
ASP.NET SignalR is a new library for ASP.NET developers that makes developing real-time web functionality easy. SignalR allows bi-directional communication between server and client. Servers can now push content to connected clients instantly as it becomes available. SignalR supports Web Sockets, and falls back to other compatible techniques for older browsers.
So my expectation is that you can use WebSocket Sampler plugin in order to test this functionality. The plugin can be installed using JMeter Plugins Manager, check out WebSocket Testing With Apache JMeter article for comprehensive information on installation, configuration and usage of the plugin for WebSockets load testing.
I have a Web application based on Spring MVC 3.2 and TCP/IP Server written by Netty. Recently, I have got some requirement. It needs to be sent to the TCP/IP client via the TCP/IP server when a user wants to type some message on the Web browser. Of course, the message should be go to the Web application first and it will pass it to TCP/IP server and get back result. What would be the solution covering this requirement? I am having a look at AtiveMQ and Camel but not clear how to build these kind system.
Please let me get some clue or example.
Thanks.
I have been reading articles about asynchronous messaging between clients using MVC3 and the SignalR library (http://sergiotapia.com/2011/09/signalr-with-mvc3-chat-app-build-asynchronous-real-time-persistant-connection-websites/)
We currently use activemq for some of our fat client apps and use topics to broadcast data to everyone. Does anyone know if this sort of thing could be used in MVC3 as well?
I'd like to create an application that doesn't require a user to install anything (and could even be used on a phone), but it would be monitoring continuously-changing data. We're talking refreshing data every 2-3 seconds.
If you want to have asynchronous messaging with client (browser) use SignalR. ActiveMQ and MSMQ are technologies for thick clients and server-to-server communication. They require installation (MSMQ requires windows installation) and they are not accessible from browser (well I can imagine accessing MSMQ through ActiveX or ActiveMQ from Java applet but that is not what you are looking for).
One of the possible ways to go is to build a web service which will implement communication with AMQ/MSMQ via their APIs and do poll this web service from your webpage (via ajax call for example) to refresh the data as it's needed.
I'm trying to develop an extension that detects every connection made by the browser to figure out the URLs being accessed. I know that this is possible via writing an HTTP/SOCKS proxy and configuring the browser to flow traffic via that. However, that's kind of overkill for the application that I'm trying to develop and it's best done as a Firefox Add-on if that's possible. Any clues/pointers would be highly appreciated.
Use nsIHttpActivityDistributor and there is many information about the http transaction and socket transport through observeActivity callback.
Read the official documentation https://developer.mozilla.org/en/Monitoring_HTTP_activity.