Ratchet PHP zeromq fallback to older browsers
I am following this instruction http://socketo.me/docs/push I got it
working but I'd like my service to be compatible with older browsers as
well (IE 8 etc), so can I somehow use flash fallback (like web_socket.js
or similar) to do this:
function initPull() {
var conn = new ab.Session(
'ws://'+PUSH_SOCKET_SERVER+':'+PUSH_SOCKET_PORT+'/' // The host (our
Ratchet WebSocket server) to
, function() { // Once the connection has been established
conn.subscribe(TOPIC_PREFIX+rID, function(topic, data) {
//Trigger action
aTrigger(data);
});
}
, function() { // When the connection is closed
console.warn('WebSocket connection closed');
}
, { // Additional parameters, we're ignoring the
WAMP sub-protocol for older browsers
'skipSubprotocolCheck': true
}
);
}
Any hope?
No comments:
Post a Comment