import * as crossws from 'crossws'; import { Peer } from 'crossws'; import { b as ConnectionInitMessage } from '../common-DY-PBNYy.js'; import { S as ServerOptions } from '../server-CvxoLxzz.js'; import 'graphql'; /** * The extra that will be put in the `Context`. * * @category Server/bun */ interface Extra { /** * The actual socket connection between the server and the client. */ readonly socket: Peer['websocket']; } declare function makeHooks
= Record > & {
/**
* If the server is running in production. Defaults to read from `process.env.NODE_ENV`.
* In production the server will not send error messages whichmight contain sensitive info to the client.
*/
isProd?: boolean;
}): {
open(peer: Peer