think-socket-uws

1.0.1 • Public • Published

ThinkJS Socket.io uWebSocket

NPM version travis-ci Coverage Status Dependency Status


ThinkJS 2.x Socket.io adapter, that's implement uWebsockets

Install

npm install think-socket-uws

How to use

register adapter

import uws from 'think-socket-uws';
think.adapter('websocket', 'uws', uws);

add above code in bootstrap file, like src/common/boostrap/adapter.js.

change view type

change adapter type in file src/common/config/websocket.js,

export default {
  type: 'uws',
  adapter: {
    uws: { //uws socket.io options
 
    }
  }
}

Package Sidebar

Install

npm i think-socket-uws

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • imkulikov