strapio:Strapi 的 Socket.IO 实现

时间:2021-05-29 09:02:16
【文件属性】:
文件名称:strapio:Strapi 的 Socket.IO 实现
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-29 09:02:16
JavaScript 表带IO 用于使用带有预定义规则的 socket.io 的模块。 StrapIO 将查看每个操作的角色权限。 StrapIO 正在寻找可以访问给定内容类型和操作类型的所有角色。 安装 npm i strapio config/functions/bootstrap.js process . nextTick ( ( ) => { strapi . StrapIO = new ( require ( "strapio" ) ) ( strapi ) ; } ) ; 用法 服务器 api//controllers/.js module . exports = { async create ( ctx ) { let entity ; if ( ctx . is ( "multipart" ) ) {
【文件预览】:
strapio-master
----.gitignore(32B)
----README.md(2KB)
----package.json(632B)
----index.js(1KB)

网友评论