UNPKG

@cortexql/core

Version:

A RESTful API framework for your apps based on GraphQL type system.

7 lines (6 loc) 226 B
export async function* subscribeMessage(args: void, context: any): AsyncIterator<string> { while (true) { yield `Hello from WebSocket ${Math.random()}`; await new Promise(resolve => setTimeout(resolve, 1000)); } }