Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@fuman/net

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fuman/net - npm Package Compare versions

Comparing version
0.0.10
to
0.0.11
+16
websocket-server.d.cts
import { IConnection, TcpEndpoint } from './types.js';
import { IWebSocketConnectionFramed } from './websocket.js';
/** a connection to a WebSocket server (not to be confused with client-side connection!) */
export interface IWebSocketServerConnection extends IConnection<TcpEndpoint> {
/** headers from the handshake request */
readonly headers: Headers;
/** URL of the handshake request */
readonly url: string;
}
/** a framed connection to a WebSocket server (not to be confused with client-side connection!) */
export interface IWebSocketServerConnectionFramed extends IWebSocketConnectionFramed {
/** headers from the handshake request */
readonly headers: Headers;
/** URL of the handshake request */
readonly url: string;
}
import { IConnection, TcpEndpoint } from './types.js';
import { IWebSocketConnectionFramed } from './websocket.js';
/** a connection to a WebSocket server (not to be confused with client-side connection!) */
export interface IWebSocketServerConnection extends IConnection<TcpEndpoint> {
/** headers from the handshake request */
readonly headers: Headers;
/** URL of the handshake request */
readonly url: string;
}
/** a framed connection to a WebSocket server (not to be confused with client-side connection!) */
export interface IWebSocketServerConnectionFramed extends IWebSocketConnectionFramed {
/** headers from the handshake request */
readonly headers: Headers;
/** URL of the handshake request */
readonly url: string;
}
+1
-0

@@ -7,2 +7,3 @@ export * from './errors.js';

export * from './types.js';
export * from './websocket-server.js';
export * from './websocket.js';

@@ -7,2 +7,3 @@ export * from './errors.js';

export * from './types.js';
export * from './websocket-server.js';
export * from './websocket.js';
+3
-3
{
"name": "@fuman/net",
"type": "module",
"version": "0.0.10",
"version": "0.0.11",
"description": "experimental network abstractions",

@@ -9,4 +9,4 @@ "license": "MIT",

"dependencies": {
"@fuman/io": "^0.0.10",
"@fuman/utils": "^0.0.10"
"@fuman/io": "^0.0.11",
"@fuman/utils": "^0.0.11"
},

@@ -13,0 +13,0 @@ "exports": {

@@ -27,3 +27,7 @@ import { IClosable } from '@fuman/io';

}
export declare class WebSocketConnectionFramed extends WebSocketConnectionBase {
export interface IWebSocketConnectionFramed extends IClosable {
readFrame: () => Promise<Uint8Array | string>;
writeFrame: (frame: Uint8Array | string) => Promise<void>;
}
export declare class WebSocketConnectionFramed extends WebSocketConnectionBase implements IWebSocketConnectionFramed {
#private;

@@ -30,0 +34,0 @@ onMessage(event: MessageEvent): void;

@@ -27,3 +27,7 @@ import { IClosable } from '@fuman/io';

}
export declare class WebSocketConnectionFramed extends WebSocketConnectionBase {
export interface IWebSocketConnectionFramed extends IClosable {
readFrame: () => Promise<Uint8Array | string>;
writeFrame: (frame: Uint8Array | string) => Promise<void>;
}
export declare class WebSocketConnectionFramed extends WebSocketConnectionBase implements IWebSocketConnectionFramed {
#private;

@@ -30,0 +34,0 @@ onMessage(event: MessageEvent): void;