Tag: 选项卡

Socket.IO,导航器选项卡的问题

我正在使用Socket.IO,我发现一个很大的问题。 我试图做一个实时聊天:用户login,select另一个用户连接和交谈,所以(…) var http = require('http'), fs = require('fs'), path = require('path'), io, server; var PORT = 3000, HOST = '127.0.0.1'; server = http.createServer( function ( request, response ) { var filePath = '.' + request.url, extName, contentType; if (filePath == './') { filePath = './index.html'; } extName = path.extname(filePath); contentType = 'text/html'; switch ( […]