yamux-js
Advanced tools
Comparing version 0.0.2 to 0.0.3
import { Client } from './client'; | ||
import { Config } from './mux'; | ||
import { Server } from './server'; | ||
export { Config, Client, Server }; | ||
import { Stream } from './stream'; | ||
export { Config, Client, Server, Stream }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Server = exports.Client = void 0; | ||
exports.Stream = exports.Server = exports.Client = void 0; | ||
const client_1 = require("./client"); | ||
@@ -8,1 +8,3 @@ Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return client_1.Client; } }); | ||
Object.defineProperty(exports, "Server", { enumerable: true, get: function () { return server_1.Server; } }); | ||
const stream_1 = require("./stream"); | ||
Object.defineProperty(exports, "Stream", { enumerable: true, get: function () { return stream_1.Stream; } }); |
@@ -6,2 +6,3 @@ /// <reference types="node" /> | ||
import { Config, defaultConfig } from './mux'; | ||
import { Stream } from './stream'; | ||
export declare class Session extends Transform { | ||
@@ -27,3 +28,3 @@ private localGoaway; | ||
private goAway; | ||
open(): Duplex; | ||
open(): Stream; | ||
private handlePing; | ||
@@ -30,0 +31,0 @@ private ping; |
@@ -168,3 +168,3 @@ "use strict"; | ||
} | ||
// Open is used to create a new stream as a Duplex | ||
// Open is used to create a new stream | ||
open() { | ||
@@ -171,0 +171,0 @@ const stream = new stream_2.Stream(this, this.nextStreamID, constants_1.STREAM_STATES.Init); |
{ | ||
"name": "yamux-js", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "lib/index", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
32977
20
685