https://github.com/thinkjs/think-websocket
WebSocket for ThinkJS 3.x
https://github.com/thinkjs/think-websocket
think-extend thinkjs websocket
Last synced: 12 days ago
JSON representation
WebSocket for ThinkJS 3.x
- Host: GitHub
- URL: https://github.com/thinkjs/think-websocket
- Owner: thinkjs
- License: mit
- Created: 2017-03-28T01:58:51.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-07-01T00:13:45.000Z (almost 4 years ago)
- Last Synced: 2025-03-22T03:51:17.298Z (28 days ago)
- Topics: think-extend, thinkjs, websocket
- Language: JavaScript
- Size: 15.6 KB
- Stars: 3
- Watchers: 9
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- think-awesome - think-websocket
README
# think-websocket
[](https://travis-ci.org/thinkjs/think-websocket)
[](https://coveralls.io/github/thinkjs/think-websocket)
[](https://www.npmjs.com/package/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:
```js
const websocket = require('think-websocket');
module.exports = [
// ...
websocket(think.app),
];```