Skip to content

Commit

Permalink
fix(client): wrong usage of Buffer (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
drochetti authored Dec 14, 2023
1 parent e5cfd8e commit 6a89dd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libs/client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@fal-ai/serverless-client",
"description": "The fal serverless JS/TS client",
"version": "0.7.1",
"version": "0.7.2",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
6 changes: 1 addition & 5 deletions libs/client/src/realtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ const DEFAULT_THROTTLE_INTERVAL = 128;
function shouldSendBinary(message: any): boolean {
return Object.values(message).some(
(value) =>
value instanceof Buffer ||
value instanceof Blob ||
value instanceof ArrayBuffer ||
value instanceof Uint8Array
Expand Down Expand Up @@ -478,10 +477,7 @@ export const realtimeImpl: RealtimeClient = {
onResult(result);
return;
}
if (
event.data instanceof Buffer ||
event.data instanceof Uint8Array
) {
if (event.data instanceof Uint8Array) {
const result = unpack(event.data);
onResult(result);
return;
Expand Down

0 comments on commit 6a89dd1

Please sign in to comment.