import { ActionheroConfigInterface } from "actionhero" ; const namespace = "websocket" ; declare module "actionhero" { export interface ActionheroConfigInterface { [ namespace ] : ReturnType < typeof DEFAULT [ typeof namespace ] > ; } } export const DEFAULT = { [ namespace ] : ( config ) => { return { enabled : true , clientUrl : "window.location.origin" , clientJsPath : "javascript/" , clientJsName : "ActionheroWebsocketClient" , destroyClientsOnShutdown : false , server : { } , client : { apiPath : "/api" , cookieKey : config . web . fingerprintOptions . cookieKey , } , } ; } , } ;