@grandlinex/swagger-mate
Preparing search index...
BaseCon
Class BaseCon
Index
Constructors
constructor
Properties
api
authorization
con
disconnected
fail
Flag
logger
on
Reconnect
permanent
Header
reconnect
Methods
connect
fake
Enable
Client
handle
is
Connected
p
ping
test
test
Token
token
Constructors
constructor
new
BaseCon
(
conf
:
{
con
:
ConHandle
;
endpoint
:
string
;
logger
?:
(
arg
:
any
)
=>
void
}
,
)
:
BaseCon
Parameters
conf
:
{
con
:
ConHandle
;
endpoint
:
string
;
logger
?:
(
arg
:
any
)
=>
void
}
Returns
BaseCon
Properties
api
api
:
string
authorization
authorization
:
null
|
string
con
con
:
ConHandle
disconnected
disconnected
:
boolean
fail
Flag
failFlag
:
boolean
logger
logger
:
(
arg
:
any
)
=>
void
on
Reconnect
onReconnect
:
(
con
:
BaseCon
)
=>
Promise
<
boolean
>
permanent
Header
permanentHeader
:
undefined
|
Record
<
string
,
string
>
reconnect
reconnect
:
()
=>
Promise
<
boolean
>
Methods
connect
connect
(
email
:
string
,
pw
:
string
)
:
Promise
<
boolean
>
Parameters
email
:
string
pw
:
string
Returns
Promise
<
boolean
>
fake
Enable
Client
fakeEnableClient
()
:
void
Enable client before auth
Returns
void
handle
handle
<
T
,
J
>
(
type
:
"POST"
|
"GET"
|
"PATCH"
|
"DELETE"
,
path
:
string
,
body
?:
J
,
config
?:
ConHandleConfig
,
)
:
Promise
<
HandleRes
<
T
>
>
Type Parameters
T
J
Parameters
type
:
"POST"
|
"GET"
|
"PATCH"
|
"DELETE"
path
:
string
Optional
body
:
J
Optional
config
:
ConHandleConfig
Returns
Promise
<
HandleRes
<
T
>
>
is
Connected
isConnected
()
:
boolean
Returns
boolean
p
p
(
path
:
string
,
config
?:
ConHandleConfig
)
:
string
Parameters
path
:
string
Optional
config
:
ConHandleConfig
Returns
string
ping
ping
()
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
test
test
(
email
:
string
,
password
:
string
)
:
Promise
<
boolean
>
Parameters
email
:
string
password
:
string
Returns
Promise
<
boolean
>
test
Token
testToken
()
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
token
token
()
:
string
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
api
authorization
con
disconnected
fail
Flag
logger
on
Reconnect
permanent
Header
reconnect
Methods
connect
fake
Enable
Client
handle
is
Connected
p
ping
test
test
Token
token
@grandlinex/swagger-mate
Loading...
Enable client before auth