iosignal 7.2.0 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ko.md +72 -186
- package/README.md +76 -221
- package/dist/browser/esm/io.d.ts +5 -2
- package/dist/browser/esm/io.js +1 -1
- package/dist/browser/esm/io.js.map +1 -1
- package/dist/browser/iife/io.js +1 -1
- package/dist/browser/iife/io.js.map +1 -1
- package/dist/node/iosignal.cjs +408 -223
- package/dist/node/iosignal.d.cts +67 -9
- package/dist/node/iosignal.d.ts +67 -9
- package/dist/node/iosignal.js +408 -224
- package/dist/types/client/IOCore.d.ts +4 -1
- package/dist/types/client/browser/IOWebSocket.d.ts +1 -1
- package/package.json +1 -1
|
@@ -172,7 +172,9 @@ export class IOCore extends EventEmitter<string | symbol, any> {
|
|
|
172
172
|
stop(): void;
|
|
173
173
|
/**
|
|
174
174
|
* Permanently destroys the instance, cleaning up all resources.
|
|
175
|
-
* The instance will not be usable after this.
|
|
175
|
+
* The instance will not be usable after this. Later signal()/publish()/subscribe()
|
|
176
|
+
* calls are silently dropped, the same as sends while disconnected, and call()
|
|
177
|
+
* rejects with code 'CONNECTION_CLOSED'.
|
|
176
178
|
*/
|
|
177
179
|
destroy(): void;
|
|
178
180
|
/**
|
|
@@ -255,6 +257,7 @@ export class IOCore extends EventEmitter<string | symbol, any> {
|
|
|
255
257
|
getEncryptionMode(): boolean;
|
|
256
258
|
/**
|
|
257
259
|
* Sends data with encryption based on the encryption mode.
|
|
260
|
+
* Like an unconnected socket, a destroyed instance silently drops the data.
|
|
258
261
|
* @param {Buffer} data - The data buffer to send.
|
|
259
262
|
* @param {boolean} [useEncryption] - Optional. Force encryption or not. If undefined, uses default policy.
|
|
260
263
|
*/
|
|
@@ -68,7 +68,7 @@ export default class IO extends IOCore {
|
|
|
68
68
|
*/
|
|
69
69
|
onWebSocketMessageBlob(event: MessageEvent): Promise<void>;
|
|
70
70
|
/**
|
|
71
|
-
* Sends data over the WebSocket.
|
|
71
|
+
* Sends data over the WebSocket. Data is dropped while the socket is not open.
|
|
72
72
|
* @param {BufferSource} data - The data to send.
|
|
73
73
|
*/
|
|
74
74
|
socket_send(data: BufferSource): void;
|