think-websocket

websocket for ThinkJS

Usage no npm install needed!

<script type="module">
  import thinkWebsocket from 'https://cdn.skypack.dev/think-websocket';
</script>

README

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