Property 'sockets' does not exist on type 'EggSocketNameSpace'
const nsp = app.io.of('/');
const socket = nsp.sockets[socketId];
修改为
const nsp: any = app.io.of('/');
const socket = nsp.sockets[socketId];
const nsp = app.io.of('/');
const socket = nsp.sockets[socketId];
修改为
const nsp: any = app.io.of('/');
const socket = nsp.sockets[socketId];
本文标题:egg_error
本文链接:https://www.haomeiwen.com/subject/dnhqtltx.html
网友评论