jsonpolling이 내 서버를 엉망으로 만들기 때문에이 서버를 비활성화하고 싶습니다. 그러나 jsonpollingsocket.io에 대한 jsonpolling을 비활성화 하시겠습니까?
io.sockets.on('connection', function(socket) {
socket.set('transports', [ 'websocket', 'htmlfile', 'xhr-polling' ],function(){
....code that I had directly in io.sockets.on("connection"...
});
});
:이처럼 보였다 그래서 "..."나는 "sockets.on ("로 연결을 넣어
socket.set('transports', [ 'websocket', 'htmlfile', 'xhr-polling' ])
을 : 나는 그렇게 인터넷에이 코드를 발견 아직도 여전히 내 서버를 망쳐 놨에 대해 활성화 될 것으로 보인다 난 당신이 listen
와 Socket.IO에 초기화 할 때, 당신은 설정 옵션을 사용하여 개체를 지정할 수 있습니다
socket.io를 가져온 직후'io.set ('transport', [...])'할 수 있습니까? – apsillers