Socket.io websockets, (IMO) - : , , .
, , socket.io websocket, , .
. , socket.io. HTTP → wait → response, , EOF . , , websockets ( TCP) , socket.io . , websockets , 2011 , . , socket.io , , "" .
websocket HTTP, . , http://localhost:8080 ( ). , , socket.io ws://localhost: 8080 .
socket.io, , HTTP- /-, .
, , - netty-socket.io. , :
public class Configuration {
private ExceptionListener exceptionListener = new DefaultExceptionListener();
private String context = "/socket.io";
private List<Transport> transports = Arrays.asList(Transport.WEBSOCKET, Transport.POLLING);
private int bossThreads = 0;
private int workerThreads = 0;
.
Node JS -, , - ( Java):
io.set('transports', [
'websocket'
, 'flashsocket'
, 'htmlfile'
, 'xhr-polling'
, 'jsonp-polling'
]);
, socket.io , , , , , .
, !