remix/node-serve · FunctionView Source

createUwsRequestHandler

Summary

Creates a route handler for an existing uWebSockets.js app from a Fetch API handler.

Signature

function createUwsRequestHandler(
  handler: FetchHandler,
  options: UwsRequestHandlerOptions,
): UwsRequestHandler;

Params

handler

The fetch handler to use for processing incoming requests

options

Request handler options

Returns

A route handler that can be registered on a uWebSockets.js app