@hono/node-ws
WebSocket helper for Node.js
Last updated a year ago by yusukebe .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @hono/node-ws 
SYNC missed versions from official npm registry.

WebSocket helper for Node.js

codecov

A WebSocket helper for Node.js

Usage

import { createNodeWebSocket } from '@hono/node-ws'
import { Hono } from 'hono'
import { serve } from '@hono/node-server'

const app = new Hono()

const { injectWebSocket, upgradeWebSocket } = createNodeWebSocket({ app })

app.get(
  '/ws',
  upgradeWebSocket((c) => ({
    // https://hono.dev/helpers/websocket
  }))
)

const server = serve(app)
injectWebSocket(server)

Author

Shotaro Nakamura https://github.com/nakasyou

License

MIT

Current Tags

  • 1.3.0                                ...           latest (3 months ago)

19 Versions

  • 1.3.0                                ...           3 months ago
  • 1.2.0                                ...           10 months ago
  • 1.1.7                                ...           10 months ago
  • 1.1.6                                ...           10 months ago
  • 1.1.5                                ...           10 months ago
  • 1.1.4                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year 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
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
  • ws ^8.17.0
Dev Dependencies (5)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |