Document us_socket_local_port
This commit is contained in:
parent
9b3efbdfa3
commit
8591a224cf
1 changed files with 11 additions and 1 deletions
12
docs/index.d.ts
vendored
12
docs/index.d.ts
vendored
|
@ -12,13 +12,20 @@
|
||||||
* limitations under the License.
|
* 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.
|
* Careful with this one, it is entirely unchecked and native so invalid usage will blow up.
|
||||||
*/
|
*/
|
||||||
export interface us_listen_socket {
|
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.
|
/** Native type representing a raw uSockets struct us_socket_context_t.
|
||||||
* Used while upgrading a WebSocket manually. */
|
* Used while upgrading a WebSocket manually. */
|
||||||
export interface us_socket_context_t {
|
export interface us_socket_context_t {
|
||||||
|
@ -312,6 +319,9 @@ export function SSLApp(options: AppOptions): TemplatedApp;
|
||||||
/** Closes a uSockets listen socket. */
|
/** Closes a uSockets listen socket. */
|
||||||
export function us_listen_socket_close(listenSocket: us_listen_socket): void;
|
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 {
|
export interface MultipartField {
|
||||||
data: ArrayBuffer;
|
data: ArrayBuffer;
|
||||||
name: string;
|
name: string;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue