From f57340997994d638da70c83f596eb73c0b85b985 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Wed, 9 Jun 2021 09:18:40 +0000 Subject: [PATCH] [GitHub Actions] Updated macos-11.0 binaries --- index.d.ts | 12 +++++++++++- source_commit | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 7b259f72..191fa867 100644 --- a/index.d.ts +++ b/index.d.ts @@ -12,13 +12,20 @@ * limitations under the License. */ -/** Native type representing a raw uSockets struct us_listen_socket. +/** Native type representing a raw uSockets struct us_listen_socket_t. * Careful with this one, it is entirely unchecked and native so invalid usage will blow up. */ export interface us_listen_socket { } +/** Native type representing a raw uSockets struct us_socket_t. + * Careful with this one, it is entirely unchecked and native so invalid usage will blow up. + */ +export interface us_socket { + +} + /** Native type representing a raw uSockets struct us_socket_context_t. * Used while upgrading a WebSocket manually. */ export interface us_socket_context_t { @@ -312,6 +319,9 @@ export function SSLApp(options: AppOptions): TemplatedApp; /** Closes a uSockets listen socket. */ export function us_listen_socket_close(listenSocket: us_listen_socket): void; +/** Gets local port of socket (or listenSocket) or -1. */ +export function us_socket_local_port(socket: us_socket): number; + export interface MultipartField { data: ArrayBuffer; name: string; diff --git a/source_commit b/source_commit index 46e1d7e7..7830d09a 100644 --- a/source_commit +++ b/source_commit @@ -1 +1 @@ -9b3efbdfa315f4ec559fc8a6afe78083007bb7df +8591a224cf4e3809aaabf9c68ce81b910bba88af