diff options
Diffstat (limited to 'src/client/DocServer.ts')
-rw-r--r-- | src/client/DocServer.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts index 33f7c1d35..0c9d5f75c 100644 --- a/src/client/DocServer.ts +++ b/src/client/DocServer.ts @@ -23,7 +23,7 @@ import MobileInkOverlay from '../mobile/MobileInkOverlay'; */ export namespace DocServer { let _cache: { [id: string]: RefField | Promise<Opt<RefField>> } = {}; - let _socket: SocketIOClient.Socket; + export let _socket: SocketIOClient.Socket; // this client's distinct GUID created at initialization let GUID: string; // indicates whether or not a document is currently being udpated, and, if so, its id @@ -255,10 +255,6 @@ export namespace DocServer { return apiKey; } - export async function analyzeImage(image: string, callback: (result: any) => void) { - Utils.EmitCallback(_socket, MessageStore.AnalyzeInk, image, callback); - } - export function getYoutubeVideos(videoTitle: string, callBack: (videos: any[]) => void) { Utils.EmitCallback(_socket, MessageStore.YoutubeApiQuery, { type: YoutubeQueryTypes.SearchVideo, userInput: videoTitle }, callBack); } |