@dkaframework/server
TypeScript icon, indicating that this package has built-in type declarations

1.2.21 • Public • Published

@dkaframework/server

GitHub last commit GitHub contributors GitHub pull requests GitHub issues GitHub repo size GitHub version

Features

@dkaframework/server combines other frameworks into a framework and can be used practically to create your project. It consists of:

Simple and convenient API

Sample code:

import {Server, Options} from "@dkaframework/server";

(async() => {
    await Server({
        engine: Options.ENGINE.FASTIFY, // Options.ENGINE.SOCKETIO || Options.ENGINE.UDP,
        host: Options.HOST.LOCALHOST, // Options.HOST.WILDCARD
        port: Options.PORT.DEFAULT,
        ... // Optional Config if you change engine type
    }).then(async (serverCallback) => {
        console.log(serverCallback)
    }).catch(async (error) => {
        console.error(error)
    });
})()

Package Sidebar

Install

npm i @dkaframework/server

Weekly Downloads

17

Version

1.2.21

License

MIT

Unpacked Size

260 kB

Total Files

158

Last publish

Collaborators

  • yovangga