Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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),
];

```