Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thinkjs/think-websocket
WebSocket for ThinkJS 3.x
https://github.com/thinkjs/think-websocket
think-extend thinkjs websocket
Last synced: 3 months 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 (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-07-01T00:13:45.000Z (over 3 years ago)
- Last Synced: 2024-10-13T23:04:49.044Z (3 months ago)
- Topics: think-extend, thinkjs, websocket
- Language: JavaScript
- Size: 15.6 KB
- Stars: 3
- Watchers: 10
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- think-awesome - think-websocket
README
# think-websocket
[![Build Status](https://travis-ci.org/thinkjs/think-websocket.svg?branch=master)](https://travis-ci.org/thinkjs/think-websocket)
[![Coverage Status](https://coveralls.io/repos/github/thinkjs/think-websocket/badge.svg)](https://coveralls.io/github/thinkjs/think-websocket)
[![npm](https://img.shields.io/npm/v/think-websocket.svg)](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),
];```