think-websocket
May 17, 2026 ยท View on GitHub
This repository has been migrated. For ongoing updates, please see https://github.com/thinkjs/thinkjs/tree/master/packages/think-websocket.
think-websocket
WebSocket Extend for ThinkJS 3.x
Install
npm install think-websocket
How to Use
Edit config file src/config/extend.js, add options:
const websocket = require('think-websocket');
module.exports = [
// ...
websocket(think.app),
];