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 rtp protocol. RFC 3550
github.com/1995parham/krtp
1995parham/krtp
krtp
/
examples
/
e1.js
14 lines
(10 loc)
•
232 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const
Session
=
require
(
'../dist'
).
Session
const
s =
new
Session
(
1373
) s.
on
(
'message'
,
(
msg
) =>
{
console
.
log
(msg) s.
close
() }) s.
sendSR
(
'192.168.73.4'
).
catch
(
err
=>
{
console
.
log
(err) }) s.
send
(
Buffer
.
from
(
'Hello world'
))