1
我在NodeJS应用程序中使用socket.io
。 socket.io
页面位于localhost:8081/socket.io/
。但是,我想在localhost:8081/hola/socket.io/
。那可能吗?NodeJS中的Socket.io
var express = require("express");
var app = express();
var server = require("http").Server(app);
var io = require("socket.io")(server);
//some code here...
server.listen(8081, function() {
console.log("Server running at http://localhost:8081/");
});