0.7.4 • Published 2 years ago
@delight-rpc/websocket v0.7.4
@delight-rpc/websocket
Install
npm install --save @delight-rpc/websocket
# or
yarn add @delight-rpc/websocket
API
createClient
function createClient<IAPI extends object>(
socket: WebSocket
, options?: {
parameterValidators?: DelightRPC.ParameterValidators<IAPI>
expectedVersion?: string
channel?: string
timeout?: number
}
): [client: DelightRPC.ClientProxy<IAPI>, close: () => void]
createBatchClient
function createBatchClient(
socket: WebSocket
, options?: {
expectedVersion?: string
channel?: string
timeout?: number
}
): [client: DelightRPC.BatchClient, close: () => void]
createServer
function createServer<IAPI extends object>(
api: DelightRPC.ImplementationOf<IAPI>
, socket: WebSocket
, options?: {
loggerLevel?: Level = Level.None
parameterValidators?: DelightRPC.ParameterValidators<IAPI>
version?: `${number}.${number}.${number}`
channel?: string | RegExp | AnyChannel
ownPropsOnly?: boolean
}
): () => void
0.7.4
2 years ago
0.7.3
2 years ago
0.7.2
2 years ago
0.7.1
2 years ago
0.7.0
2 years ago
0.6.1
2 years ago
0.6.0
3 years ago
0.5.4
3 years ago
0.5.3
3 years ago
0.5.2
3 years ago
0.5.0
3 years ago
0.5.1
3 years ago
0.4.1
3 years ago
0.3.2
3 years ago
0.4.0
3 years ago
0.3.3
3 years ago
0.3.1
3 years ago
0.3.0
3 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.2.3
4 years ago
0.2.2
4 years ago
0.2.5
3 years ago
0.2.4
3 years ago
0.1.1
4 years ago
0.1.0
4 years ago