hapi-plugin-websocket:用于无缝WebSocket集成的HAPI插件

时间:2021-05-24 12:12:25
【文件属性】:
文件名称:hapi-plugin-websocket:用于无缝WebSocket集成的HAPI插件
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-24 12:12:25
hapi websockets ws hapi-plugin JavaScript hapi-plugin-websocket 用于无缝WebSocket集成的插件。 安装 $ npm install hapi hapi-plugin-websocket 关于 这是的服务器框架的小插件,用于无缝协议集成。 它接受WebSocket连接,并在传入/传出的WebSocket消息与注入的HTTP请求/响应消息之间进行转换。 用法 下面的示例服务器一次显示所有功能: const Boom = require ( "@hapi/boom" ) const HAPI = require ( "@hapi/hapi" ) const HAPIAuthBasic = require ( "@hapi/basic" ) const HAPIWebSocket = require ( "hapi-plugin-websocket" ) const W
【文件预览】:
hapi-plugin-websocket-master
----hapi-plugin-websocket.js(18KB)
----.gitignore(13B)
----package.json(2KB)
----README.md(11KB)
----sample-server.js(5KB)
----eslint.yaml(2KB)

网友评论