@signalapp/libsignal-client
Advanced tools
Comparing version 0.63.0 to 0.64.0
@@ -82,5 +82,7 @@ "use strict"; | ||
const nativeChatListener = makeNativeChatListener(asyncContext, listener); | ||
const connect = Native.UnauthenticatedChatConnection_connect(asyncContext, connectionManager, new WeakListenerWrapper(nativeChatListener)); | ||
const connect = Native.UnauthenticatedChatConnection_connect(asyncContext, connectionManager); | ||
const chat = await asyncContext.makeCancellable(options?.abortSignal, connect); | ||
return new UnauthenticatedChatConnection(asyncContext, newNativeHandle(chat), nativeChatListener); | ||
const connection = newNativeHandle(chat); | ||
Native.UnauthenticatedChatConnection_init_listener(connection, new WeakListenerWrapper(nativeChatListener)); | ||
return new UnauthenticatedChatConnection(asyncContext, connection, nativeChatListener); | ||
} | ||
@@ -109,5 +111,7 @@ constructor(asyncContext, chatService, | ||
const nativeChatListener = makeNativeChatListener(asyncContext, listener); | ||
const connect = Native.AuthenticatedChatConnection_connect(asyncContext, connectionManager, username, password, receiveStories, new WeakListenerWrapper(nativeChatListener)); | ||
const connect = Native.AuthenticatedChatConnection_connect(asyncContext, connectionManager, username, password, receiveStories); | ||
const chat = await asyncContext.makeCancellable(options?.abortSignal, connect); | ||
return new AuthenticatedChatConnection(asyncContext, newNativeHandle(chat), nativeChatListener); | ||
const connection = newNativeHandle(chat); | ||
Native.AuthenticatedChatConnection_init_listener(connection, new WeakListenerWrapper(nativeChatListener)); | ||
return new AuthenticatedChatConnection(asyncContext, connection, nativeChatListener); | ||
} | ||
@@ -114,0 +118,0 @@ constructor(asyncContext, chatService, |
@@ -163,5 +163,6 @@ // | ||
export function AuthCredentialWithPni_CheckValidContents(bytes: Buffer): void; | ||
export function AuthenticatedChatConnection_connect(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>, username: string, password: string, receiveStories: boolean, listener: ChatListener | null): CancellablePromise<AuthenticatedChatConnection>; | ||
export function AuthenticatedChatConnection_connect(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>, username: string, password: string, receiveStories: boolean): CancellablePromise<AuthenticatedChatConnection>; | ||
export function AuthenticatedChatConnection_disconnect(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<AuthenticatedChatConnection>): CancellablePromise<void>; | ||
export function AuthenticatedChatConnection_info(chat: Wrapper<AuthenticatedChatConnection>): ConnectionInfo; | ||
export function AuthenticatedChatConnection_init_listener(chat: Wrapper<AuthenticatedChatConnection>, listener: ChatListener): void; | ||
export function AuthenticatedChatConnection_send(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<AuthenticatedChatConnection>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): CancellablePromise<ChatResponse>; | ||
@@ -573,5 +574,6 @@ export function BackupAuthCredentialPresentation_CheckValidContents(presentationBytes: Buffer): void; | ||
export function TokioAsyncContext_new(): TokioAsyncContext; | ||
export function UnauthenticatedChatConnection_connect(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>, listener: ChatListener | null): CancellablePromise<UnauthenticatedChatConnection>; | ||
export function UnauthenticatedChatConnection_connect(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>): CancellablePromise<UnauthenticatedChatConnection>; | ||
export function UnauthenticatedChatConnection_disconnect(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<UnauthenticatedChatConnection>): CancellablePromise<void>; | ||
export function UnauthenticatedChatConnection_info(chat: Wrapper<UnauthenticatedChatConnection>): ConnectionInfo; | ||
export function UnauthenticatedChatConnection_init_listener(chat: Wrapper<UnauthenticatedChatConnection>, listener: ChatListener): void; | ||
export function UnauthenticatedChatConnection_send(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<UnauthenticatedChatConnection>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): CancellablePromise<ChatResponse>; | ||
@@ -578,0 +580,0 @@ export function UnidentifiedSenderMessageContent_Deserialize(data: Buffer): UnidentifiedSenderMessageContent; |
{ | ||
"name": "@signalapp/libsignal-client", | ||
"version": "0.63.0", | ||
"version": "0.64.0", | ||
"license": "AGPL-3.0-only", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90258825
7263