@fuman/net
Advanced tools
| 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'; |
+1
-0
@@ -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": { |
+5
-1
@@ -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; |
+5
-1
@@ -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; |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
94262
2.21%84
2.44%2426
0.87%0
-100%+ Added
+ Added
- Removed
- Removed
Updated
Updated