我正在使用CometD jQuery客户端,它可以使用不同的渠道。我试图在发布消息后收听来自频道上的来自服务器的消息但是不能在订阅的频道上接收任何消息(订阅的回调不执行)。
注意:GC,FF和IE10以后的工作正常。 任何帮助将不胜感激! 提前致谢:) 记录:
LOG: 20:53:53.064Transportlong-pollingreset
LOG: 20:53:53.064Transportcallback-pollingreset
LOG: 20:53:53.064New advice[object Object]
LOG: 20:53:53.064Initial transport islong-polling
LOG: 20:53:53.064Statusdisconnected->handshaking
LOG: 20:53:53.064Handshake sent[object Object]
LOG: 20:53:53.064Send[object Object]
LOG: 20:53:53.064Transportlong-pollingsending request1envelope[object Object]
LOG: 20:53:53.064Transportlong-pollingreceived errorerrorNo Transport
LOG: 20:53:53.065Transportlong-pollingwaiting at most10000ms for the response, maxNetworkDelay10000
LOG: 20:53:53.071Addingsubscriptionon/channel-1 with scopeundefinedand callbackfunction _handlerUserSession(message) {
}
LOG: 20:53:53.071Addedsubscription[object Object]
LOG: 20:53:53.122Invoking timed functionfunction()
{
self.transportFailure(envelope, request, failure);
}
LOG: 20:53:53.123handleFailure[object Object][object Object][object Object]
LOG: 20:53:53.123Transportlong-polling->callback-polling
LOG: 20:53:53.123Function scheduled in1000ms, interval =0backoff =1000function()
{
_handshake(_handshakeProps, _handshakeCallback);
}
LOG: 20:53:54.126Invoking timed functionfunction()
{
_handshake(_handshakeProps, _handshakeCallback);
}
LOG: 20:53:54.126Removedsubscription[object Object]
LOG: 20:53:54.126New advice[object Object]
LOG: 20:53:54.126Initial transport iscallback-polling
LOG: 20:53:54.126Handshake sent[object Object]
LOG: 20:53:54.126Send[object Object]
LOG: 20:53:54.126Transportcallback-pollingsending request1envelope[object Object]
LOG: 20:53:54.128Transportcallback-pollingwaiting at most10000ms for the response, maxNetworkDelay10000
LOG: 20:53:54.349Received[object Object]
LOG: 20:53:54.349New advice[object Object]
LOG: 20:53:54.349Send[object Object]
LOG: 20:53:54.349Transportcallback-pollingsending request2envelope[object Object]
LOG: 20:53:54.350Transportcallback-pollingwaiting at most10000ms for the response, maxNetworkDelay10000
LOG: 20:53:54.350Statushandshaking->connecting
LOG: 20:53:54.350Function scheduled in200ms, interval =200backoff =0function()
{
_connect();
}
LOG: 20:53:54.564Received[object Object],[object Object]
LOG: 20:53:54.573Invoking timed functionfunction()
{
_connect();
}
LOG: 20:53:54.573Connect sent[object Object]
LOG: 20:53:54.573Send[object Object]
LOG: 20:53:54.573Transportcallback-pollingmetaConnect send, request3envelope[object Object]
LOG: 20:53:54.573Transportcallback-pollingsending request3envelope[object Object]
LOG: 20:53:54.575Transportcallback-pollingwaiting at most40000ms for the response, maxNetworkDelay10000
LOG: 20:53:54.575Statusconnecting->connected
LOG: 20:53:54.788Transportcallback-pollingmetaConnect complete, request3
LOG: 20:53:54.788Received[object Object],[object Object],[object Object]
LOG: 20:53:54.788New advice[object Object]
LOG: 20:53:54.788Statusconnected->connecting
LOG: 20:53:54.788Function scheduled in200ms, interval =200backoff =0function()
{
_connect();
}
LOG: 20:53:54.788Handling remote call response for[object Object]with contextundefined
LOG: 20:53:54.788Handling remote call response for[object Object]with contextundefined
LOG: 20:53:54.999Invoking timed functionfunction()
{
_connect();
}
LOG: 20:53:54.999Connect sent[object Object]
LOG: 20:53:54.999Send[object Object]
LOG: 20:53:54.999Transportcallback-pollingmetaConnect send, request4envelope[object Object]
LOG: 20:53:55.000Transportcallback-pollingsending request4envelope[object Object]
LOG: 20:53:55.002Transportcallback-pollingwaiting at most40000ms for the response, maxNetworkDelay10000
LOG: 20:53:55.002Statusconnecting->connected
LOG: 20:54:05.509Transportcallback-pollingmetaConnect complete, request4
LOG: 20:54:05.509handleFailureundefined[object Object][object Object]
LOG: 20:54:05.509Statusconnected->connecting
LOG: 20:54:05.509Function scheduled in200ms, interval =200backoff =0function()
{
_connect();
}
LOG: 20:54:05.714Invoking timed functionfunction()
{
_connect();
}
LOG: 20:54:05.714Connect sent[object Object]
LOG: 20:54:05.714Send[object Object]
LOG: 20:54:05.714Transportcallback-pollingmetaConnect send, request5envelope[object Object]
LOG: 20:54:05.714Transportcallback-pollingsending request5envelope[object Object]
LOG: 20:54:05.717Transportcallback-pollingwaiting at most40000ms for the response, maxNetworkDelay10000
LOG: 20:54:05.717Statusconnecting->connected
LOG: 20:54:06.136Transportcallback-pollingmetaConnect complete, request5
LOG: 20:54:06.136Received[object Object]
LOG: 20:54:06.136Statusconnected->connecting
LOG: 20:54:06.136Function scheduled in200ms, interval =200backoff =0function()
{
_connect();
}