0.0.11 • Published 2 years ago

laf-websocket-server v0.0.11

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

服务端使用

import {
  Router,
  WebSocketServer,
  BaseController,
  ContextData,
} from 'laf-websocket-server';

export class TestController extends BaseController {
  async test(ctx: ContextData) {
    console.log('test', ctx);
  }
}

const router = new Router([
  {
    path: '/test/:id',
    controller: TestController,
  },
]);

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const server = new WebSocketServer(router);

客户端使用

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago