|
@ -31,7 +31,6 @@ import com.corundumstudio.socketio.ack.AckManager; |
|
|
import com.corundumstudio.socketio.messages.XHRNewChannelMessage; |
|
|
import com.corundumstudio.socketio.messages.XHRNewChannelMessage; |
|
|
import com.corundumstudio.socketio.messages.XHRPacketMessage; |
|
|
import com.corundumstudio.socketio.messages.XHRPacketMessage; |
|
|
import com.corundumstudio.socketio.parser.Packet; |
|
|
import com.corundumstudio.socketio.parser.Packet; |
|
|
import com.corundumstudio.socketio.parser.PacketType; |
|
|
|
|
|
|
|
|
|
|
|
public class XHRPollingClient extends MainBaseClient { |
|
|
public class XHRPollingClient extends MainBaseClient { |
|
|
|
|
|
|
|
@ -56,7 +55,6 @@ public class XHRPollingClient extends MainBaseClient { |
|
|
public ChannelFuture send(final Packet packet) { |
|
|
public ChannelFuture send(final Packet packet) { |
|
|
final Channel currChannel = getChannel(); |
|
|
final Channel currChannel = getChannel(); |
|
|
ChannelFuture res = currChannel.write(new XHRPacketMessage(getSessionId(), origin, packet)); |
|
|
ChannelFuture res = currChannel.write(new XHRPacketMessage(getSessionId(), origin, packet)); |
|
|
if (!packet.getType().equals(PacketType.NOOP)) { |
|
|
|
|
|
res.addListener(new GenericFutureListener<Future<Void>>() { |
|
|
res.addListener(new GenericFutureListener<Future<Void>>() { |
|
|
@Override |
|
|
@Override |
|
|
public void operationComplete(Future<Void> future) throws Exception { |
|
|
public void operationComplete(Future<Void> future) throws Exception { |
|
@ -74,7 +72,6 @@ public class XHRPollingClient extends MainBaseClient { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return res; |
|
|
return res; |
|
|
} |
|
|
} |
|
|