1.0.17 • Published 1 year ago

@envoy-js/express v1.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

envoy-js/express

Installation

envoy-js/express is available on npm

Using npm

npm i @envoy-js/express

or yarn

yarn add @envoy-js/express

Examples

Typescript Quickstart

import Envoy from "@envoy/express"
import express from "express";
import {createServer} from "http";

const app = express();
const httpServer = createServer(app);
const port = 3000

interface User {
    username: string
    id: string,
    avatar: string
}

interface Message {
    id: string
    value: string
    roomid: string
}

interface Room {
    id: string
    users: User[],
}

const envoy = new Envoy<User, Room, Message>({userKey: "id" as const}, httpServer)

httpServer.listen(port, () => {
    console.log(`Envoy app listening on port ${port}`)
})

Here is a sample React app

React

1.0.17

1 year ago

1.0.16

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago