@openfeed/sdk-js 1.6.6 → 1.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.6.
|
|
1
|
+
export declare const version = "1.6.7";
|
package/dist/index.js
CHANGED
|
@@ -11832,7 +11832,7 @@ class OpenFeedConnection {
|
|
|
11832
11832
|
whenDisconnected = () => this.whenDisconnectedSource.whenCompleted;
|
|
11833
11833
|
dispose = () => this.disconnect(new ConnectionDisposedError("Disposed"));
|
|
11834
11834
|
}
|
|
11835
|
-
const version = "1.6.
|
|
11835
|
+
const version = "1.6.7";
|
|
11836
11836
|
const getClientVersion = async (clientId) => {
|
|
11837
11837
|
let platformDescription;
|
|
11838
11838
|
if (typeof window !== "undefined") {
|
package/dist/node.js
CHANGED
|
@@ -15627,7 +15627,7 @@ var OpenFeedConnection = class {
|
|
|
15627
15627
|
};
|
|
15628
15628
|
|
|
15629
15629
|
// generated/version.ts
|
|
15630
|
-
var version = "1.6.
|
|
15630
|
+
var version = "1.6.7";
|
|
15631
15631
|
|
|
15632
15632
|
// src/utilities/client_version.ts
|
|
15633
15633
|
var getClientVersion = async (clientId) => {
|
|
@@ -2,6 +2,8 @@ import WebSocket from "isomorphic-ws";
|
|
|
2
2
|
import { OptionalUndefined } from "@src/utilities/messages";
|
|
3
3
|
import type { OpenfeedGatewayMessage, OpenfeedGatewayRequest } from "@gen/openfeed_api";
|
|
4
4
|
export declare function encodeMessage(message: OpenfeedGatewayRequest): Uint8Array;
|
|
5
|
+
export declare function decodeRequestMessage(bytes: Uint8Array): OpenfeedGatewayRequest;
|
|
6
|
+
export declare function encodeResponseMessage(message: OpenfeedGatewayMessage): Uint8Array;
|
|
5
7
|
export declare function send(socket: WebSocket, message: OptionalUndefined<OpenfeedGatewayRequest>): void;
|
|
6
8
|
export declare function decodeMessages(bytes: Uint8Array): Iterable<OpenfeedGatewayMessage>;
|
|
7
9
|
export declare function receive(msgEvent: WebSocket.MessageEvent): OpenfeedGatewayMessage[];
|