WebRTC 信令服务器
WebRTC 信令服务器
node.js & V8 libuv
socket.io
node-static
SSR
https://github.com/cloudhead/node-static
const static = require('node-static');
const http = require('http');
const file = new(static.Server)();
const app = http.createServer(function (req, res) {
file.serve(req, res);
}).listen(2020);
ref
https://segmentfault.com/a/1190000018575278
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/12770568.html
未经授权禁止转载,违者必究!