Search
Preparing search index...
The search index is not available
node-appletv
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"lib/connection"
Connection
Class Connection
Hierarchy
EventEmitter
Connection
Index
Interfaces
Events
Constructors
constructor
Properties
device
is
Open
default
Max
Listeners
Methods
add
Listener
close
emit
event
Names
get
Max
Listeners
handle
Chunk
listener
Count
listeners
off
on
once
open
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Listener
send
send
Blank
set
Max
Listeners
wait
For
Sequence
listener
Count
Constructors
constructor
new
Connection
(
device
:
AppleTV
, socket
?:
Socket
)
:
Connection
Parameters
device:
AppleTV
Optional
socket:
Socket
Returns
Connection
Properties
device
device
:
AppleTV
is
Open
is
Open
:
boolean
Static
default
Max
Listeners
default
Max
Listeners
:
number
Methods
add
Listener
add
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
close
close
(
)
:
void
Returns
void
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
event
Names
event
Names
(
)
:
Array
<
string
|
symbol
>
Returns
Array
<
string
|
symbol
>
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
handle
Chunk
handle
Chunk
(
data
:
Buffer
)
:
Promise
<
Message
>
Parameters
data:
Buffer
Returns
Promise
<
Message
>
listener
Count
listener
Count
(
type
:
string
|
symbol
)
:
number
Parameters
type:
string
|
symbol
Returns
number
listeners
listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
off
off
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
on
on
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
once
once
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
open
open
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
prepend
Listener
prepend
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
raw
Listeners
raw
Listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
this
Parameters
Optional
event:
string
|
symbol
Returns
this
remove
Listener
remove
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
send
send
(
message
:
ProtoMessage
<
{}
>
, waitForResponse
:
boolean
, priority
:
number
, credentials
?:
Credentials
)
:
Promise
<
Message
>
Parameters
message:
ProtoMessage
<
{}
>
waitForResponse:
boolean
priority:
number
Optional
credentials:
Credentials
Returns
Promise
<
Message
>
send
Blank
send
Blank
(
typeName
:
string
, waitForResponse
:
boolean
, credentials
?:
Credentials
)
:
Promise
<
Message
>
Parameters
typeName:
string
waitForResponse:
boolean
Optional
credentials:
Credentials
Returns
Promise
<
Message
>
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
this
Parameters
n:
number
Returns
this
wait
For
Sequence
wait
For
Sequence
(
sequence
:
number
, timeout
?:
number
)
:
Promise
<
Message
>
Parameters
sequence:
number
Default value
timeout:
number
= 3
Returns
Promise
<
Message
>
Static
listener
Count
listener
Count
(
emitter
:
EventEmitter
, event
:
string
|
symbol
)
:
number
deprecated
since v4.0.0
Parameters
emitter:
EventEmitter
event:
string
|
symbol
Returns
number
Globals
"bin/index"
"bin/pair"
"bin/scan"
"index"
"lib/appletv"
"lib/browser"
"lib/connection"
"lib/credentials"
"lib/message"
"lib/now-
playing-
info"
"lib/pairing"
"lib/supported-
command"
"lib/util/encryption"
"lib/util/number"
"lib/util/tlv"
"lib/verifier"
"test/appletv.spec"
"test/browser.spec"
"test/encryption.spec"
"test/helpers/mock-
server"
"test/pairing.spec"
Connection
Events
constructor
device
is
Open
default
Max
Listeners
add
Listener
close
emit
event
Names
get
Max
Listeners
handle
Chunk
listener
Count
listeners
off
on
once
open
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Listener
send
send
Blank
set
Max
Listeners
wait
For
Sequence
listener
Count
Message
Callback
camelcase
snake
Generated using
TypeDoc
since v4.0.0