toBunServe function

Serve toBunServe(
  1. Spry app
)

Create a Bun serve object using Spry application.

Implementation

Serve toBunServe(Spry app) {
  return Serve(
    fetch: _createBunServeFetch(app),
    websocket: _createWebSocketHandler(),
  );
}