Home

Awesome

think-websocket

Build Status Coverage Status npm

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