aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/ws.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/ws.ts b/source/ws.ts
index fdd9fb1..cbf70ea 100644
--- a/source/ws.ts
+++ b/source/ws.ts
@@ -53,7 +53,7 @@ export type WSOptions<Ctx = unknown> = {
* Deno.serve(GraphQLHTTP({ schema, subscriptions }));
* ```
*/
-export function GraphQLWS<Ctx = unknown>(options: WSOptions<Ctx>) {
+export function GraphQLWS<Ctx = unknown>(options: WSOptions<Ctx>): (request: Request) => Response {
const server = makeServer({
...options,
context: options.context as ServerOptions["context"],