deno.land / x / alosaur@v1.1.1 / examples / microservice / mservice / app.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { Microservice, MicroserviceType } from "alosaur/microservice/mod.ts";import { HomeArea } from "./home.area.ts";
const server = new Microservice({ areas: [HomeArea], type: MicroserviceType.TCP, config: { hostname: "localhost", port: 4500, },});
await server.listen();
alosaur

Version Info

Tagged at
a year ago