Search
Preparing search index...
The search index is not available
samsung-tv-control
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"index"
Samsung
Class Samsung
Hierarchy
Samsung
Index
Constructors
constructor
Properties
APP_
STRING
IP
LOGGER
MAC
NAME_
APP
PORT
SAVE_
TOKEN
TOKEN
TOKEN_
FILE
TV_
APP_
STRING
WS_
URL
Methods
_save
Token
ToFile
_send
_send
Legacy
_send
Legacy
Promise
_send
Promise
get
Apps
FromTV
get
Apps
FromTVPromise
get
Legacy
Command
get
Logs
get
Token
get
Token
Promise
is
Avaliable
is
Avaliable
Ping
open
App
open
App
Promise
send
Key
send
Key
Promise
turn
On
Constructors
constructor
new
Samsung
(
config
:
Configuration
)
:
Samsung
Parameters
config:
Configuration
Returns
Samsung
Properties
Private
APP_
STRING
APP_
STRING
:
string
Private
IP
IP
:
string
Private
LOGGER
LOGGER
:
Logger
Private
MAC
MAC
:
string
Private
NAME_
APP
NAME_
APP
:
string
Private
PORT
PORT
:
number
Private
SAVE_
TOKEN
SAVE_
TOKEN
:
boolean
Private
TOKEN
TOKEN
:
string
Private
TOKEN_
FILE
TOKEN_
FILE
:
string
= path.join(__dirname, 'token.txt')
Private
TV_
APP_
STRING
TV_
APP_
STRING
:
string
Private
WS_
URL
WS_
URL
:
string
Methods
Private
_save
Token
ToFile
_save
Token
ToFile
(
token
:
string
)
:
void
Parameters
token:
string
Returns
void
Private
_send
_send
(
command
:
Command
, done
?:
undefined
|
(
(
err
:
null
|
(
Error
&
{
code
:
string
}
)
, res
:
WSData
|
null
)
=>
void
)
, eventHandle
?:
undefined
|
string
)
:
void
Parameters
command:
Command
Optional
done:
undefined
|
(
(
err
:
null
|
(
Error
&
{
code
:
string
}
)
, res
:
WSData
|
null
)
=>
void
)
Optional
eventHandle:
undefined
|
string
Returns
void
Private
_send
Legacy
_send
Legacy
(
key
:
KEYS
, done
?:
undefined
|
(
(
err
:
null
|
Error
|
{
code
:
string
}
, res
:
string
)
=>
void
)
)
:
void
Parameters
key:
KEYS
Optional
done:
undefined
|
(
(
err
:
null
|
Error
|
{
code
:
string
}
, res
:
string
)
=>
void
)
Returns
void
Private
_send
Legacy
Promise
_send
Legacy
Promise
(
key
:
KEYS
)
:
Promise
<
unknown
>
Parameters
key:
KEYS
Returns
Promise
<
unknown
>
Private
_send
Promise
_send
Promise
(
command
:
Command
, eventHandle
?:
undefined
|
string
)
:
Promise
<
WSData
|
null
>
Parameters
command:
Command
Optional
eventHandle:
undefined
|
string
Returns
Promise
<
WSData
|
null
>
get
Apps
FromTV
get
Apps
FromTV
(
done
?:
undefined
|
(
(
err
:
Error
|
{
code
:
string
}
|
null
, res
:
WSData
|
string
|
null
)
=>
void
)
)
:
void
Parameters
Optional
done:
undefined
|
(
(
err
:
Error
|
{
code
:
string
}
|
null
, res
:
WSData
|
string
|
null
)
=>
void
)
Returns
void
get
Apps
FromTVPromise
get
Apps
FromTVPromise
(
)
:
Promise
<
WSData
|
null
>
Returns
Promise
<
WSData
|
null
>
Private
get
Legacy
Command
get
Legacy
Command
(
key
:
KEYS
)
:
{
command
:
string
;
header
:
string
}
Parameters
key:
KEYS
Returns
{
command
:
string
;
header
:
string
}
command
:
string
header
:
string
get
Logs
get
Logs
(
)
:
void
Returns
void
get
Token
get
Token
(
done
:
(
token
:
string
|
null
)
=>
void
)
:
void
Parameters
done:
(
token
:
string
|
null
)
=>
void
(
token
:
string
|
null
)
:
void
Parameters
token:
string
|
null
Returns
void
Returns
void
get
Token
Promise
get
Token
Promise
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
is
Avaliable
is
Avaliable
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
is
Avaliable
Ping
is
Avaliable
Ping
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
open
App
open
App
(
appId
:
string
, done
?:
undefined
|
(
(
err
:
Error
|
{
code
:
string
}
|
null
, res
:
WSData
|
string
|
null
)
=>
void
)
)
:
void
Parameters
appId:
string
Optional
done:
undefined
|
(
(
err
:
Error
|
{
code
:
string
}
|
null
, res
:
WSData
|
string
|
null
)
=>
void
)
Returns
void
open
App
Promise
open
App
Promise
(
appId
:
string
)
:
Promise
<
unknown
>
Parameters
appId:
string
Returns
Promise
<
unknown
>
send
Key
send
Key
(
key
:
KEYS
, done
?:
undefined
|
(
(
err
:
Error
|
{
code
:
string
}
|
null
, res
:
WSData
|
string
|
null
)
=>
void
)
)
:
void
Parameters
key:
KEYS
Optional
done:
undefined
|
(
(
err
:
Error
|
{
code
:
string
}
|
null
, res
:
WSData
|
string
|
null
)
=>
void
)
Returns
void
send
Key
Promise
send
Key
Promise
(
key
:
KEYS
)
:
Promise
<
unknown
>
Parameters
key:
KEYS
Returns
Promise
<
unknown
>
turn
On
turn
On
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
Globals
"apps"
"auto-
search"
"helpers"
"index"
"keys"
"logger"
"types"
Samsung
constructor
APP_
STRING
IP
LOGGER
MAC
NAME_
APP
PORT
SAVE_
TOKEN
TOKEN
TOKEN_
FILE
TV_
APP_
STRING
WS_
URL
_save
Token
ToFile
_send
_send
Legacy
_send
Legacy
Promise
_send
Promise
get
Apps
FromTV
get
Apps
FromTVPromise
get
Legacy
Command
get
Logs
get
Token
get
Token
Promise
is
Avaliable
is
Avaliable
Ping
open
App
open
App
Promise
send
Key
send
Key
Promise
turn
On
Generated using
TypeDoc