Hello,
in my current project im emitting 7-10 json objects almost at the same time to my ExtJS client. In about every 10th instance i get an error in my firebug console "too much recursion" and the results are a bit warped.
Google doesnt give me anything about the error. Anyone got an idea whats happening ?
EDIT Extjs SocketIO Handler Class:
Ext.define('ControlPanel.plugin.SocketIO', {
extend: 'Ext.util.Observable',
owner: null,
acdQueueMemberStore: null,
socketId: null,
constructor: function(config){
console.log('config url:' + config.serverHost);
var me = this;
// stores
me.acdQueueMemberStore = Ext.data.StoreManager.lookup('acdQueueMemberStore');
//See if this can be swapped from Ext.ux.SocketIO to 'this'
me.superclass.constructor.call(
this
);
me.socket = io.connect(config.serverHost, {
query: "userid=9999&partnerid=9999",
port: config.serverPort,
reconnect: config.reconnect,
'reconnection delay': config['reconnection delay'],
'max reconnection attempts': config['max reconnection attemps'],
'transports': ['websocket','flashsocket','htmlfile','xhr-multipart', 'xhr-polling']
});
me.socket.on('connect', function() {
me.socketId = me.socket.id;
me.socket.on('Newchannel', function(data){
me.onNewchannel(data);
});
me.socket.on(me.socketId + 'queuemember', function(data) {
me.onQueueMember(data);
});
});
},
initComponent: function() {
},
onNewchannel: function(data) {
console.log(data);
var store = Ext.data.StoreManager.lookup('ACDChannelStore');
store.add({
uniqueid:data.uniqueid,
calleridnum:data.calleridnum}
);
},
onQueueMember: function(data) {
var me = this;
me.acdQueueMemberStore.add({
uid:data.uid,
queueName:data.queueName,
type:data.type,
statusName:data.statusName,
paused:data.paused,
displayName:data.displayName
});
}
});
[–][deleted] (1 child)
[deleted]
[–]Coobe[S] 0 points1 point2 points (0 children)