文件名称:server-push-hooks::fire:用于Socket.io,SEE,WebSockets等的React钩子
文件大小:221KB
文件格式:ZIP
更新时间:2024-05-29 06:32:05
react hooks sse server-sent-events socketio
React钩子用于处理服务器推送技术: 用于 为 运行样本 要在本地运行样本,您可以: $ git clone https://github.com/mfrachet/server-push-hooks $ cd server-push-hooks $ npm install # install lerna and dependencies at the root $ npm run bootstrap # install lerna packages dependencies $ npm run build # build the lerna packages $ npm start # start the web application $ npm start:test-server # start the backend services in another termina
【文件预览】:
server-push-hooks-master
----.github()
--------workflows()
----cypress()
--------integration()
--------fixtures()
--------plugins()
--------support()
----cypress.json(37B)
----packages()
--------use-socketio()
--------use-server-sent-events()
--------use-websockets()
----example()
--------index.html(168B)
--------server.js(255B)
--------sse()
--------websocket()
--------App.js(715B)
--------socketio()
--------server-helpers.js(282B)
--------index.js(179B)
----LICENSE.md(1KB)
----lerna.json(63B)
----README.md(1KB)
----.gitignore(43B)
----package-lock.json(559KB)
----package.json(788B)