Search
Preparing search index...
The search index is not available
ogre-router
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
ogre-router
Signaler
Class Signaler
Hierarchy
Signaler
Index
Constructors
constructor
Properties
get
Answer
Subject
get
Connected
Subject
get
Offer
Subject
get
User
Conn
Subject
peerlist
socket
Methods
connect
User
get
Answer
get
Offer
get
Peer
List
observe
Offers
observe
Peer
List
on
Socket
Connected
send
Answer
send
Offer
socket
Message
socket_
get
Answer
socket_
get
Offer
socket_
peerlist
socket_
user
Connected
Constructors
constructor
new
Signaler
(
signalingAddress
?:
string
)
:
Signaler
Parameters
Optional
signalingAddress:
string
Returns
Signaler
Properties
Private
get
Answer
Subject
get
Answer
Subject
:
Subject
<
IAnswerRef
>
= ...
Private
get
Connected
Subject
get
Connected
Subject
:
Subject
<
boolean
>
= ...
Private
get
Offer
Subject
get
Offer
Subject
:
Subject
<
IOfferRef
>
= ...
Private
get
User
Conn
Subject
get
User
Conn
Subject
:
Subject
<
string
>
= ...
Private
peerlist
peerlist
:
BehaviorSubject
<
IUserRef
[]
>
= ...
Private
socket
socket
:
WebSocket
Methods
connect
User
connect
User
(
user
:
User
)
:
Promise
<
string
>
Parameters
user:
User
Returns
Promise
<
string
>
get
Answer
get
Answer
(
)
:
Promise
<
IAnswerRef
>
Returns
Promise
<
IAnswerRef
>
get
Offer
get
Offer
(
)
:
Promise
<
IOfferRef
>
Returns
Promise
<
IOfferRef
>
get
Peer
List
get
Peer
List
(
)
:
IUserRef
[]
Returns
IUserRef
[]
observe
Offers
observe
Offers
(
)
:
Observable
<
IOfferRef
>
Returns
Observable
<
IOfferRef
>
observe
Peer
List
observe
Peer
List
(
)
:
Observable
<
IUserRef
[]
>
Returns
Observable
<
IUserRef
[]
>
on
Socket
Connected
on
Socket
Connected
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
send
Answer
send
Answer
(
targetUserId
:
string
, answer
:
any
)
:
void
Parameters
targetUserId:
string
answer:
any
Returns
void
send
Offer
send
Offer
(
targetUserId
:
string
, offer
:
any
)
:
void
Parameters
targetUserId:
string
offer:
any
Returns
void
Private
socket
Message
socket
Message
(
message
:
{
data
:
string
}
)
:
void
Parameters
message:
{
data
:
string
}
data
:
string
Returns
void
Private
socket_
get
Answer
socket_
get
Answer
(
data
:
any
)
:
void
Parameters
data:
any
Returns
void
Private
socket_
get
Offer
socket_
get
Offer
(
data
:
any
)
:
void
Parameters
data:
any
Returns
void
Private
socket_
peerlist
socket_
peerlist
(
data
:
{
alias
:
string
;
id
:
string
}
[]
)
:
void
Parameters
data:
{
alias
:
string
;
id
:
string
}
[]
Returns
void
Private
socket_
user
Connected
socket_
user
Connected
(
data
:
{
id
:
string
}
)
:
void
Parameters
data:
{
id
:
string
}
id
:
string
Returns
void
Exports
Signaler
constructor
get
Answer
Subject
get
Connected
Subject
get
Offer
Subject
get
User
Conn
Subject
peerlist
socket
connect
User
get
Answer
get
Offer
get
Peer
List
observe
Offers
observe
Peer
List
on
Socket
Connected
send
Answer
send
Offer
socket
Message
socket_
get
Answer
socket_
get
Offer
socket_
peerlist
socket_
user
Connected
Generated using
TypeDoc