UNPKG

@renegade-fi/react

Version:
9 lines 367 B
import { addExpiringAuthToHeaders, SIG_EXPIRATION_BUFFER_MS } 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