Unanswered: Server-sent events and websockets in Ext js
Unanswered: Server-sent events and websockets in Ext js
Hi,
I wanted to know does Server-sent events or websockets are supported in Ext js 4?
If not what is the preferred way to implement server push events/messages to the client?
There's no support.
The preferred way depends on what you have on server side and on what browsers your app should work . For example if you have node.js then you can user socket.io. If for you is ok to have websockets then use them as usually,as are used on web.
Thanks for your help, Lets say I have a java server for the server side and I would like to push the browser some kind of event message what will be the preferred way? in java we use JMS but in the web world this is not an option.
I'm have no knowledge about Java platforms and Java frameworks but since you asked for web sockets you can take a look at which browsers support them and if fits your project requirements then websockets are a good choice, you can use them in an ordinary way - as are used on web clients.
in java we use JMS but in the web world this is not an option.
lee el,
There are now solutions that allow you to use messaging directly in the browser. If you want to use JMS (over a WebSocket connection) in a browser application (just like you would in your java server), check out Kaazing (full disclosure: I work for Kaazing). There are also some open-source choices that can give you other less-comprehensive messaging options such as ActiveMQ over Stomp over WebSockets using a JavaScript library like Stomple. Good luck in finding a solution that meets your needs, but messaging in the browser is definitely possible.