UNPKG

@renegade-fi/react

Version:
10 lines 403 B
import { SIG_EXPIRATION_BUFFER_MS } from "@renegade-fi/core"; import { addExpiringAuthToHeaders } from "@renegade-fi/core"; export function createSignedWebSocketRequest(config, key, body) { const headers = addExpiringAuthToHeaders(config, body.topic, {}, JSON.stringify(body), key, SIG_EXPIRATION_BUFFER_MS); return { headers, body, }; } //# sourceMappingURL=websocket.js.map