Documentation
Preparing search index...
@rivetkit/next-js
client/mod
createClient
Function createClient
createClient
<
A
extends
Registry
<
any
>
>
(
endpointOrConfig
?:
|
string
|
{
disableMetadataLookup
?:
boolean
;
encoding
?:
"json"
|
"cbor"
|
"bare"
;
endpoint
?:
string
;
getUpgradeWebSocket
?:
GetUpgradeWebSocket
;
headers
?:
Record
<
string
,
string
>
;
namespace
?:
string
;
runnerName
?:
string
;
token
?:
string
;
}
,
)
:
Client
<
A
>
Creates a client with the actor accessor proxy.
Type Parameters
A
extends
Registry
<
any
>
Parameters
Optional
endpointOrConfig
:
|
string
|
{
disableMetadataLookup
?:
boolean
;
encoding
?:
"json"
|
"cbor"
|
"bare"
;
endpoint
?:
string
;
getUpgradeWebSocket
?:
GetUpgradeWebSocket
;
headers
?:
Record
<
string
,
string
>
;
namespace
?:
string
;
runnerName
?:
string
;
token
?:
string
;
}
Returns
Client
<
A
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Documentation
Loading...
Creates a client with the actor accessor proxy.