UNPKG

@helios-starling/starling

Version:

Modern WebSocket client for the Helios-Starling protocol

20 lines (18 loc) 602 B
import { handleMessageError, handleNotification, handleRequest, handleResponse } from "@helios-starling/utils"; /** * @type {import("@helios-starling/utils").ProxyHandlers} */ export const proxyConfiguration = { request: async context => { handleRequest(context.starling, context); }, response: async context => { handleResponse(context.starling, context); }, notification: async context => { handleNotification(context.starling, context); }, errorMessage: async context => { handleMessageError(context.starling, context); } }