20.0.8 • Published 10 months ago

uws-pack v20.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

uws-pack

Repack of uWebSockets.js.

Note: Major versions of the uws-pack package utilize the same Node.js native binaries (uws_${process.platform}_${process.arch}_${process.versions.modules}.node) and code as the corresponding major versions of the uWebSockets.js package.

Changes

  • full ESM

Installation

yarn add uws-pack

Alternative

Use dependency alias:

yarn add uWebSockets.js@npm:uws-pack@20.0.0

Usage

import { App } from 'uws-pack'

const port = +(process.env.PORT || 3000)

const app = App()
  .listen(port, (listenSocket) => {
    if (listenSocket) {
      console.log(`Server running at http://localhost:${port}`)
    } else {
      console.log(`Failed to listen to port ${port}`)
    }
  })

With Alternative usage is the same of uWebSockets.js:

import { App } from 'uWebSockets.js'

const port = +(process.env.PORT || 3000)

const app = App()
  .listen(port, (listenSocket) => {
    if (listenSocket) {
      console.log(`Server running at http://localhost:${port}`)
    } else {
      console.log(`Failed to listen to port ${port}`)
    }
  })

Note: For more info, see uWebSockets.js Documentation.

License

This project is licensed under the MIT License.

Licenses for third-party projects are listed in THIRD-PARTY-LICENSE.

20.0.8

10 months ago

20.0.7

10 months ago

20.0.6

10 months ago

20.0.5

10 months ago

20.0.4

10 months ago

20.0.3

10 months ago

20.0.2

10 months ago

20.0.1

10 months ago

20.0.0

10 months ago

0.0.1

10 months ago