@gtsc/api-core
Advanced tools
Comparing version 0.0.5-next.1 to 0.0.5-next.2
import type { IBaseSocketClientConfig } from "@gtsc/api-models"; | ||
import { type IError } from "@gtsc/core"; | ||
import type { IServiceRequestContext } from "@gtsc/services"; | ||
/** | ||
@@ -29,6 +28,5 @@ * Event bus which publishes using web-sockets. | ||
* Connect the socket if its not already connected. | ||
* @param requestContext The context for the request. | ||
* @returns True if the socket is already connected. | ||
*/ | ||
protected socketConnect(requestContext: IServiceRequestContext): boolean; | ||
protected socketConnect(): boolean; | ||
/** | ||
@@ -49,6 +47,5 @@ * Disconnect the socket if its connected. | ||
* Handle an error. | ||
* @param requestContext The context for the request. | ||
* @param err The error to handle. | ||
*/ | ||
protected abstract handleError(requestContext: IServiceRequestContext, err: IError): Promise<void>; | ||
protected abstract handleError(err: IError): Promise<void>; | ||
} |
@@ -87,12 +87,6 @@ # Class: `abstract` BaseSocketClient | ||
> `protected` **socketConnect**(`requestContext`): `boolean` | ||
> `protected` **socketConnect**(): `boolean` | ||
Connect the socket if its not already connected. | ||
#### Parameters | ||
• **requestContext**: `IServiceRequestContext` | ||
The context for the request. | ||
#### Returns | ||
@@ -146,3 +140,3 @@ | ||
> `protected` `abstract` **handleError**(`requestContext`, `err`): `Promise`\<`void`\> | ||
> `protected` `abstract` **handleError**(`err`): `Promise`\<`void`\> | ||
@@ -153,6 +147,2 @@ Handle an error. | ||
• **requestContext**: `IServiceRequestContext` | ||
The context for the request. | ||
• **err**: `IError` | ||
@@ -159,0 +149,0 @@ |
{ | ||
"name": "@gtsc/api-core", | ||
"version": "0.0.5-next.1", | ||
"version": "0.0.5-next.2", | ||
"description": "Core classes for use with APIs", | ||
@@ -17,3 +17,3 @@ "repository": { | ||
"dependencies": { | ||
"@gtsc/api-models": "0.0.5-next.1", | ||
"@gtsc/api-models": "0.0.5-next.2", | ||
"@gtsc/core": "next", | ||
@@ -20,0 +20,0 @@ "@gtsc/nameof": "next", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39223
607
+ Added@gtsc/api-models@0.0.5-next.2(transitive)
- Removed@gtsc/api-models@0.0.5-next.1(transitive)