diff --git a/index.d.ts b/index.d.ts index 4e643713..10d19550 100644 --- a/index.d.ts +++ b/index.d.ts @@ -47,11 +47,10 @@ export interface AppDescriptor { * This because we expect UTF-8, which is packed in 8-byte chars. JavaScript strings are UTF-16 internally meaning extra copies and reinterpretation are required. * * That's why all events pass data by ArrayBuffer and not JavaScript strings, as they allow zero-copy data passing. + * * You can always do Buffer.from(arrayBuffer).toString(), but keeping things binary and as ArrayBuffer is preferred. - * - * The ArrayBufferView type includes Node.js Buffer, DataView, and TypedArray (Uint8Array, Uint16Array, ...). */ -export type RecognizedString = string | ArrayBuffer | SharedArrayBuffer | ArrayBufferView; +export type RecognizedString = string | ArrayBuffer | Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array | Float32Array | Float64Array; /** A WebSocket connection that is valid from open to close event. * Read more about this in the user manual. diff --git a/source_commit b/source_commit index 83f364dc..69add089 100644 --- a/source_commit +++ b/source_commit @@ -1 +1 @@ -638267bf61fc6f85a35eb4178158cbf0cb73e995 +7694d176a37fc28445d4a27b34b9e6d8ed865cba diff --git a/uws_linux_arm64_115.node b/uws_linux_arm64_115.node index 5ee2e8f4..fb71271e 100644 Binary files a/uws_linux_arm64_115.node and b/uws_linux_arm64_115.node differ diff --git a/uws_linux_arm64_127.node b/uws_linux_arm64_127.node index 5a7667cc..2ee49a20 100644 Binary files a/uws_linux_arm64_127.node and b/uws_linux_arm64_127.node differ diff --git a/uws_linux_arm64_137.node b/uws_linux_arm64_137.node index aa50b0da..df3bf119 100644 Binary files a/uws_linux_arm64_137.node and b/uws_linux_arm64_137.node differ diff --git a/uws_linux_arm64_141.node b/uws_linux_arm64_141.node index 5bfb2603..9dc33826 100755 Binary files a/uws_linux_arm64_141.node and b/uws_linux_arm64_141.node differ