Skip to content

Commit

Permalink
client: update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Mar 6, 2023
1 parent c17a118 commit 9cc8f50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/client/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RTCConnectionManagement, RTCSignalingSession, ScryptedStatic } from "@scrypted/types";
import { MediaObjectOptions, RTCConnectionManagement, RTCSignalingSession, ScryptedStatic } from "@scrypted/types";
import axios, { AxiosRequestConfig } from 'axios';
import * as eio from 'engine.io-client';
import { SocketOptions } from 'engine.io-client';
Expand Down Expand Up @@ -504,7 +504,7 @@ export async function connectScryptedClient(options: ScryptedClientOptions): Pro
} = scrypted;
console.log('api attached', Date.now() - start);

mediaManager.createMediaObject = async (data, mimeType, options) => {
mediaManager.createMediaObject = async<T extends MediaObjectOptions>(data: any, mimeType: string, options: T) => {
const mo: MediaObjectRemote & {
[RpcPeer.PROPERTY_PROXY_PROPERTIES]: any,
[RpcPeer.PROPERTY_JSON_DISABLE_SERIALIZATION]: true,
Expand All @@ -520,7 +520,7 @@ export async function connectScryptedClient(options: ScryptedClientOptions): Pro
return data;
},
};
return mo;
return mo as any;
}

const { browserSignalingSession, connectionManagementId, updateSessionId } = rpcPeer.params;
Expand Down

0 comments on commit 9cc8f50

Please sign in to comment.