@ colyseus /显示器
网络监控小组
考虑支持Colyseus开发及其对Patreon的支持。
您可以使用Express中间件来启用对监视路由的身份验证,例如express-basic-middleware :
import * as basicAuth from "express-basic-auth" ;
const basicAuthMiddleware = basicAuth ( {
// list of users and passwords
users : {
"admin" : "admin" ,
} ,
// sends WWW-Authenticate header, which will prompt the user to fill
// credentials in
challenge : true
} ) ;
app . use ( "/colyseus" , basicAuthMiddleware , monitor ( ) ) ;
设置自定义房间列表列
app . use ( "
评论0
最新资源