@pbvex/client / PBVexClient
Class: PBVexClient
Extends
Constructors
Constructor
new PBVexClient(
url,options?):PBVexClient
Parameters
url
string | URL
options?
ClientOptions = {}
Returns
PBVexClient
Inherited from
Properties
auth
readonlyauth:AuthClient
Inherited from
authStore
readonlyauthStore:AuthStore
Inherited from
Accessors
connectionState
Get Signature
get connectionState():
ConnectionState
Returns
Inherited from
Methods
action()
Call Signature
action<
Ref>(ref, ...argsAndOptions):Promise<FunctionReturnType<Ref>>
Type Parameters
Ref
Ref extends FunctionReference<"action", any, any, "public">
Parameters
ref
Ref
argsAndOptions
...ArgsAndOptions<Ref, CallOptions>
Returns
Promise<FunctionReturnType<Ref>>
Inherited from
Call Signature
action<
Args,Return>(name,args?,options?):Promise<Return>
Type Parameters
Args
Args = any
Return
Return = any
Parameters
name
string
args?
Args
options?
Returns
Promise<Return>
Inherited from
clearAuth()
clearAuth():
void
Returns
void
Inherited from
close()
close():
void
Returns
void
Inherited from
mutation()
Call Signature
mutation<
Ref>(ref, ...argsAndOptions):Promise<FunctionReturnType<Ref>>
Type Parameters
Ref
Ref extends FunctionReference<"mutation", any, any, "public">
Parameters
ref
Ref
argsAndOptions
...ArgsAndOptions<Ref, CallOptions>
Returns
Promise<FunctionReturnType<Ref>>
Inherited from
Call Signature
mutation<
Args,Return>(name,args?,options?):Promise<Return>
Type Parameters
Args
Args = any
Return
Return = any
Parameters
name
string
args?
Args
options?
Returns
Promise<Return>
Inherited from
query()
Call Signature
query<
Ref>(ref, ...argsAndOptions):Promise<FunctionReturnType<Ref>>
Type Parameters
Ref
Ref extends FunctionReference<"query", any, any, "public">
Parameters
ref
Ref
argsAndOptions
...ArgsAndOptions<Ref, CallOptions>
Returns
Promise<FunctionReturnType<Ref>>
Inherited from
Call Signature
query<
Args,Return>(name,args?,options?):Promise<Return>
Type Parameters
Args
Args = any
Return
Return = any
Parameters
name
string
args?
Args
options?
Returns
Promise<Return>
Inherited from
resolveAuth()
resolveAuth(
authOverride?):Promise<string|undefined>
Parameters
authOverride?
string | AuthProvider
Returns
Promise<string | undefined>
Inherited from
setAuth()
setAuth(
value):void
Parameters
value
string | AuthProvider
Returns
void
Inherited from
watch()
Call Signature
watch<
Ref>(ref, ...argsAndOptions):Unsubscribe
Type Parameters
Ref
Ref extends FunctionReference<"query", any, any, "public">
Parameters
ref
Ref
argsAndOptions
...ArgsAndOptions<Ref, WatchOptions<FunctionReturnType<Ref>>>
Returns
Inherited from
Call Signature
watch<
Return>(name,args?,options?):Unsubscribe
Type Parameters
Return
Return = any
Parameters
name
string
args?
unknown
options?
WatchOptions<Return>