Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak_graphql/subscriptions-transport-ws/server.ts>SubscriptionServer

A simple graphql middleware for oak deno framework.
Latest
class SubscriptionServer
import { SubscriptionServer } from "https://deno.land/x/oak_graphql@0.6.4/subscriptions-transport-ws/server.ts";

Constructors

new
SubscriptionServer(options: ServerOptions)

Properties

private
closeHandler: () => void
private
optional
execute: ExecuteFunction
private
optional
keepAlive: number
private
optional
onConnect: Function
private
optional
onDisconnect: Function
private
optional
onOperation: Function
private
optional
onOperationComplete: Function
private
rootValue: any
private
schema: any
private
specifiedRules: Array<(context: any) => any> | ReadonlyArray<any>
private
optional
subscribe: SubscribeFunction
private
wsServer: any
readonly
server: any

Methods

private
loadExecutor(options: ServerOptions)
private
onClose(connectionContext: ConnectionContext)
private
onMessage(connectionContext: ConnectionContext)
private
sendError(
connectionContext: ConnectionContext,
opId: string,
errorPayload: any,
overrideDefaultErrorType?: string,
): void
private
sendKeepAlive(connectionContext: ConnectionContext): void
private
sendMessage(
connectionContext: ConnectionContext,
opId: string,
type: string,
payload: any,
): void
private
unsubscribe(connectionContext: ConnectionContext, opId: string)
close(): void