UNPKG
yamux-js
Version:
latest (0.2.1)
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
th-ch/yamux-js
yamux-js
/
lib
/
server.d.ts
7 lines
(6 loc)
•
220 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
Duplex
}
from
'stream'
;
import
{
Config
}
from
'./mux'
;
import
{
Session
}
from
'./session'
;
export
declare
class
Server
extends
Session
{
constructor
(
onStream
: (duplex: Duplex) =>
void
,
config
?:
Config
); }