A lightweight wrapper that helps you integrate crossws
with Hattip.
Warning
This package is unmaintained. Check out alien-ws for a maintained alternative. The difference is which middleware library is used (@hattip/compose
vs alien-middleware
). If you wish to maintain this package, let me now and I'll transfer it to you.
Follow the instructions for your server:
If you're building a framework on top of Hattip, you may find the root entry point useful. It contains generalized types for the adapters, so developers can pass an “adapter factory” to the framework.
import type {
WebSocketAdapterFactory,
WebSocketAdapterOptions,
WebSocketAdapter,
} from 'hattip-ws'