import { ClassEndpoint } from "./core/mod.ts" ; import { GenericEndpointInput } from "./core/endpoint/endpoint_input.ts" ; import { Client } from "./client.ts" ; export abstract class KeepAliveEndpoint extends ClassEndpoint { /**
     * A list value indicates all the clients connected with this endpoint.
     */ public clients : Client [ ] = [ ] ; see Endpoint . recieve abstract receive ( input ) ; param message param clients public broadcast ( message , clients = this . clients ) { for ( const requester of clients ) { this . sendMessageToClient ( message , requester ) ; } } param message param client public abstract sendMessageToClient ( message , client ) ; }