UNPKG
krtp
Version:
latest (4.0.0)
4.0.0
3.2.1
3.2.0
3.1.3
3.0.0
2.0.1
2.0.0
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Node implementation of rdp protocol. RFC 3550
github.com/1995parham/krtp
1995parham/krtp
krtp
/
examples
/
e2.ts
13 lines
(9 loc)
•
282 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{
Session
,
ReadRTPStream
,
WriteRTPStream
}
from
".."
;
const
s =
new
Session
(
1372
);
const
r =
new
ReadRTPStream
(s);
const
w =
new
WriteRTPStream
(s,
"127.0.0.1"
); r.
on
(
"data"
,
(
chunk
) =>
{
console
.
log
(chunk.
toString
()); }); w.
write
(
"Hello Elahe"
); w.
write
(
"I am Parham"
);