@genesislcap/foundation-comms 14.167.3-alpha-69ba23f.0 → 14.169.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/dts/auth/auth.d.ts.map +1 -1
- package/dist/dts/connect/connect.d.ts +11 -1
- package/dist/dts/connect/connect.d.ts.map +1 -1
- package/dist/dts/connect/connect.events.d.ts +173 -0
- package/dist/dts/connect/connect.events.d.ts.map +1 -0
- package/dist/dts/connect/http.connect.d.ts +1 -0
- package/dist/dts/connect/http.connect.d.ts.map +1 -1
- package/dist/dts/connect/index.d.ts +2 -0
- package/dist/dts/connect/index.d.ts.map +1 -1
- package/dist/dts/connect/message.d.ts +51 -0
- package/dist/dts/connect/message.d.ts.map +1 -1
- package/dist/dts/connect/socket.d.ts +72 -8
- package/dist/dts/connect/socket.d.ts.map +1 -1
- package/dist/dts/connect/socket.status.d.ts +79 -0
- package/dist/dts/connect/socket.status.d.ts.map +1 -0
- package/dist/dts/datasource/datasource.d.ts +9 -0
- package/dist/dts/datasource/datasource.d.ts.map +1 -1
- package/dist/dts/fdc3/fdc3.d.ts +17 -1
- package/dist/dts/fdc3/fdc3.d.ts.map +1 -1
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/networkMonitor/config.d.ts +56 -0
- package/dist/dts/networkMonitor/config.d.ts.map +1 -0
- package/dist/dts/networkMonitor/index.d.ts +4 -0
- package/dist/dts/networkMonitor/index.d.ts.map +1 -0
- package/dist/dts/networkMonitor/service.d.ts +193 -0
- package/dist/dts/networkMonitor/service.d.ts.map +1 -0
- package/dist/dts/networkMonitor/types.d.ts +133 -0
- package/dist/dts/networkMonitor/types.d.ts.map +1 -0
- package/dist/dts/testing/mocks/connect/connect.d.ts +1 -0
- package/dist/dts/testing/mocks/connect/connect.d.ts.map +1 -1
- package/dist/dts/testing/mocks/connect/socket.d.ts +5 -1
- package/dist/dts/testing/mocks/connect/socket.d.ts.map +1 -1
- package/dist/dts/testing/mocks/datasource/datasource.d.ts +1 -0
- package/dist/dts/testing/mocks/datasource/datasource.d.ts.map +1 -1
- package/dist/dts/user/user.d.ts +15 -0
- package/dist/dts/user/user.d.ts.map +1 -1
- package/dist/esm/auth/auth.js +5 -2
- package/dist/esm/connect/connect.events.js +113 -0
- package/dist/esm/connect/connect.js +30 -8
- package/dist/esm/connect/http.connect.js +6 -0
- package/dist/esm/connect/index.js +2 -0
- package/dist/esm/connect/message.js +25 -4
- package/dist/esm/connect/socket.js +113 -44
- package/dist/esm/connect/socket.status.js +119 -0
- package/dist/esm/datasource/datasource.js +18 -8
- package/dist/esm/fdc3/fdc3.js +4 -4
- package/dist/esm/index.js +1 -0
- package/dist/esm/networkMonitor/config.js +46 -0
- package/dist/esm/networkMonitor/index.js +3 -0
- package/dist/esm/networkMonitor/service.js +445 -0
- package/dist/esm/networkMonitor/types.js +5 -0
- package/dist/esm/testing/mocks/connect/connect.js +3 -0
- package/dist/esm/testing/mocks/connect/socket.js +1 -1
- package/dist/esm/testing/mocks/datasource/datasource.js +1 -0
- package/dist/esm/user/user.js +22 -1
- package/dist/foundation-comms.api.json +14711 -8166
- package/dist/foundation-comms.d.ts +841 -13
- package/docs/api/foundation-comms.commitevent.md +14 -0
- package/docs/api/foundation-comms.commiteventdetail.md +17 -0
- package/docs/api/foundation-comms.commiteventtype.md +12 -0
- package/docs/api/foundation-comms.connect.getmorecolumns.md +26 -0
- package/docs/api/foundation-comms.connect.md +1 -0
- package/docs/api/foundation-comms.connectevents.addcommitlistener.md +24 -0
- package/docs/api/foundation-comms.connectevents.addmetadatalistener.md +24 -0
- package/docs/api/foundation-comms.connectevents.addstreamlistener.md +25 -0
- package/docs/api/foundation-comms.connectevents.md +22 -0
- package/docs/api/foundation-comms.connecteventsemitter.md +24 -0
- package/docs/api/foundation-comms.connecteventsemitter.oncommitevent.md +25 -0
- package/docs/api/foundation-comms.connecteventsemitter.onmetadataevent.md +26 -0
- package/docs/api/foundation-comms.connecteventsemitter.onstreamcompleteevent.md +24 -0
- package/docs/api/foundation-comms.connecteventsemitter.onstreamevent.md +27 -0
- package/docs/api/foundation-comms.currentuser.md +2 -0
- package/docs/api/foundation-comms.currentuser.set.md +22 -0
- package/docs/api/foundation-comms.currentuser.unset.md +15 -0
- package/docs/api/foundation-comms.datasource.destroy.md +17 -0
- package/docs/api/foundation-comms.datasource.md +1 -0
- package/docs/api/foundation-comms.defaultconnect._constructor_.md +2 -1
- package/docs/api/foundation-comms.defaultconnect.getmorecolumns.md +22 -0
- package/docs/api/foundation-comms.defaultconnect.md +2 -1
- package/docs/api/foundation-comms.defaultconnectevents.addcommitlistener.md +24 -0
- package/docs/api/foundation-comms.defaultconnectevents.addmetadatalistener.md +24 -0
- package/docs/api/foundation-comms.defaultconnectevents.addstreamlistener.md +25 -0
- package/docs/api/foundation-comms.defaultconnectevents.md +27 -0
- package/docs/api/foundation-comms.defaultconnectevents.oncommitevent.md +25 -0
- package/docs/api/foundation-comms.defaultconnectevents.onmetadataevent.md +26 -0
- package/docs/api/foundation-comms.defaultconnectevents.onstreamcompleteevent.md +24 -0
- package/docs/api/foundation-comms.defaultconnectevents.onstreamevent.md +27 -0
- package/docs/api/foundation-comms.defaultdatasource.destroy.md +17 -0
- package/docs/api/foundation-comms.defaultdatasource.md +1 -0
- package/docs/api/foundation-comms.defaulthttpconnect.getmorecolumns.md +22 -0
- package/docs/api/foundation-comms.defaulthttpconnect.md +1 -0
- package/docs/api/foundation-comms.defaultmessagebuilder._constructor_.md +21 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.createchangepasswordmessage.md +24 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.createcommitmessage.md +23 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.createdatalogoffmessage.md +22 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.createdatalogonmessage.md +23 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.createforgotpasswordmessage.md +24 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.createforgotpasswordtokenmessage.md +25 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.createhttpheadersfrommessage.md +23 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.createloginmessage.md +22 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.createlogoutmessage.md +22 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.createmetarequestmessage.md +23 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.createmorecolumnsmessage.md +22 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.createmorerowsmessage.md +22 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.createrefreshtokenmessage.md +15 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.createrequestmessage.md +23 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.createresourcesmessage.md +22 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.md +41 -0
- package/docs/api/foundation-comms.defaultnetworkmonitor.addresource.md +23 -0
- package/docs/api/foundation-comms.defaultnetworkmonitor.create.md +16 -0
- package/docs/api/foundation-comms.defaultnetworkmonitor.destroy.md +16 -0
- package/docs/api/foundation-comms.defaultnetworkmonitor.md +31 -0
- package/docs/api/foundation-comms.defaultnetworkmonitor.removeresource.md +22 -0
- package/docs/api/foundation-comms.defaultnetworkmonitor.runallchecks.md +11 -0
- package/docs/api/foundation-comms.defaultnetworkmonitor.status.md +12 -0
- package/docs/api/foundation-comms.defaultnetworkmonitorconfig.md +13 -0
- package/docs/api/foundation-comms.defaultsocket._constructor_.md +24 -0
- package/docs/api/foundation-comms.defaultsocket.connect.md +24 -0
- package/docs/api/foundation-comms.defaultsocket.hasvalidsession.md +13 -0
- package/docs/api/foundation-comms.defaultsocket.isconfigured.md +11 -0
- package/docs/api/foundation-comms.defaultsocket.isconnected.md +11 -0
- package/docs/api/foundation-comms.defaultsocket.isconnectedsubject.md +11 -0
- package/docs/api/foundation-comms.defaultsocket.isconnecting.md +11 -0
- package/docs/api/foundation-comms.defaultsocket.isdisconnected.md +11 -0
- package/docs/api/foundation-comms.defaultsocket.isdisconnectedbyserver.md +11 -0
- package/docs/api/foundation-comms.defaultsocket.isreconnecting.md +11 -0
- package/docs/api/foundation-comms.defaultsocket.md +44 -0
- package/docs/api/foundation-comms.defaultsocket.reset.md +15 -0
- package/docs/api/foundation-comms.defaultsocket.send.md +23 -0
- package/docs/api/foundation-comms.defaultsocket.sendforstream.md +25 -0
- package/docs/api/foundation-comms.defaultsocket.socketmessages.md +11 -0
- package/docs/api/foundation-comms.defaultsocketstatus.closedclean.md +11 -0
- package/docs/api/foundation-comms.defaultsocketstatus.closedcode.md +11 -0
- package/docs/api/foundation-comms.defaultsocketstatus.closedreason.md +11 -0
- package/docs/api/foundation-comms.defaultsocketstatus.hasvalidsession.md +11 -0
- package/docs/api/foundation-comms.defaultsocketstatus.isconfigured.md +11 -0
- package/docs/api/foundation-comms.defaultsocketstatus.isconnected.md +11 -0
- package/docs/api/foundation-comms.defaultsocketstatus.isconnectedchanged.md +15 -0
- package/docs/api/foundation-comms.defaultsocketstatus.isconnectedsubject.md +11 -0
- package/docs/api/foundation-comms.defaultsocketstatus.isconnecting.md +11 -0
- package/docs/api/foundation-comms.defaultsocketstatus.isdisconnected.md +11 -0
- package/docs/api/foundation-comms.defaultsocketstatus.isdisconnectedbyserver.md +11 -0
- package/docs/api/foundation-comms.defaultsocketstatus.isreconnecting.md +11 -0
- package/docs/api/foundation-comms.defaultsocketstatus.isreconnectingchanged.md +15 -0
- package/docs/api/foundation-comms.defaultsocketstatus.md +42 -0
- package/docs/api/foundation-comms.defaultsocketstatus.onclose.md +22 -0
- package/docs/api/foundation-comms.defaultsocketstatus.reconnectionlimitreached.md +11 -0
- package/docs/api/foundation-comms.defaultsocketstatus.resetclosedstate.md +15 -0
- package/docs/api/foundation-comms.defaultsocketstatus.serialize.md +15 -0
- package/docs/api/foundation-comms.genesisconnectevents.md +18 -0
- package/docs/api/foundation-comms.getnetworkmonitor.md +30 -0
- package/docs/api/foundation-comms.getsocket.md +30 -0
- package/docs/api/foundation-comms.getsocketstatus.md +30 -0
- package/docs/api/foundation-comms.md +39 -0
- package/docs/api/foundation-comms.messagebuilder.createmorecolumnsmessage.md +30 -0
- package/docs/api/foundation-comms.messagebuilder.md +1 -0
- package/docs/api/foundation-comms.messagehaserrorcode.md +13 -0
- package/docs/api/foundation-comms.messagetype.md +2 -0
- package/docs/api/foundation-comms.metadataevent.md +14 -0
- package/docs/api/foundation-comms.metadataeventdetail.md +18 -0
- package/docs/api/foundation-comms.metadataeventtype.md +12 -0
- package/docs/api/foundation-comms.monitoredresource.md +15 -0
- package/docs/api/foundation-comms.monitoredresourcechecks.md +15 -0
- package/docs/api/foundation-comms.monitoredresourcechecksresult.isconnected.md +11 -0
- package/docs/api/foundation-comms.monitoredresourcechecksresult.lastmessage.md +11 -0
- package/docs/api/foundation-comms.monitoredresourcechecksresult.lastupdated.md +11 -0
- package/docs/api/foundation-comms.monitoredresourcechecksresult.md +23 -0
- package/docs/api/foundation-comms.monitoredresourcechecksresult.timeout.md +11 -0
- package/docs/api/foundation-comms.monitoredresourcedatalogon.md +15 -0
- package/docs/api/foundation-comms.monitoredresourcemetadata.md +15 -0
- package/docs/api/foundation-comms.networklogger.md +12 -0
- package/docs/api/foundation-comms.networkmonitor.addresource.md +23 -0
- package/docs/api/foundation-comms.networkmonitor.create.md +15 -0
- package/docs/api/foundation-comms.networkmonitor.destroy.md +15 -0
- package/docs/api/foundation-comms.networkmonitor.md +34 -0
- package/docs/api/foundation-comms.networkmonitor.removeresource.md +22 -0
- package/docs/api/foundation-comms.networkmonitor.runallchecks.md +23 -0
- package/docs/api/foundation-comms.networkmonitor.status.md +11 -0
- package/docs/api/foundation-comms.networkmonitorconfig.checkinterval.md +13 -0
- package/docs/api/foundation-comms.networkmonitorconfig.checktimeout.md +13 -0
- package/docs/api/foundation-comms.networkmonitorconfig.documentevents.md +13 -0
- package/docs/api/foundation-comms.networkmonitorconfig.eventemitter.md +13 -0
- package/docs/api/foundation-comms.networkmonitorconfig.genesisconnectevents.md +13 -0
- package/docs/api/foundation-comms.networkmonitorconfig.md +27 -0
- package/docs/api/foundation-comms.networkmonitorconfig.resourcechecks.md +13 -0
- package/docs/api/foundation-comms.networkmonitorconfig.resourcedatalogon.md +18 -0
- package/docs/api/foundation-comms.networkmonitorconfig.windowevents.md +13 -0
- package/docs/api/foundation-comms.resourcehealth.md +19 -0
- package/docs/api/foundation-comms.serializedsocketstatus.closedclean.md +11 -0
- package/docs/api/foundation-comms.serializedsocketstatus.closedcode.md +11 -0
- package/docs/api/foundation-comms.serializedsocketstatus.closedreason.md +11 -0
- package/docs/api/foundation-comms.serializedsocketstatus.hasvalidsession.md +11 -0
- package/docs/api/foundation-comms.serializedsocketstatus.isconfigured.md +13 -0
- package/docs/api/foundation-comms.serializedsocketstatus.isconnected.md +11 -0
- package/docs/api/foundation-comms.serializedsocketstatus.isconnecting.md +11 -0
- package/docs/api/foundation-comms.serializedsocketstatus.isdisconnected.md +11 -0
- package/docs/api/foundation-comms.serializedsocketstatus.isdisconnectedbyserver.md +11 -0
- package/docs/api/foundation-comms.serializedsocketstatus.isreconnecting.md +11 -0
- package/docs/api/foundation-comms.serializedsocketstatus.md +30 -0
- package/docs/api/foundation-comms.serializedsocketstatus.reconnectionlimitreached.md +11 -0
- package/docs/api/foundation-comms.socket.md +3 -11
- package/docs/api/foundation-comms.socket.sendforstream.md +2 -1
- package/docs/api/{foundation-comms.socket.isconnectedsubject.md → foundation-comms.socketstatus.isconnectedsubject.md} +2 -2
- package/docs/api/foundation-comms.socketstatus.md +28 -0
- package/docs/api/foundation-comms.socketstatus.onclose.md +22 -0
- package/docs/api/foundation-comms.socketstatus.serialize.md +15 -0
- package/docs/api/foundation-comms.streamcompleteevent.md +14 -0
- package/docs/api/foundation-comms.streamcompleteeventtype.md +12 -0
- package/docs/api/foundation-comms.streamevent.md +14 -0
- package/docs/api/foundation-comms.streameventdetail.md +19 -0
- package/docs/api/foundation-comms.streameventfunctions.md +19 -0
- package/docs/api/foundation-comms.streameventtype.md +12 -0
- package/docs/api/foundation-comms.systemhealthchanged.md +13 -0
- package/docs/api/foundation-comms.systemhealthchangedevent.md +15 -0
- package/docs/api/foundation-comms.systemhealthstatus.md +29 -0
- package/docs/api/foundation-comms.user.md +2 -0
- package/docs/api/foundation-comms.user.set.md +22 -0
- package/docs/api/foundation-comms.user.unset.md +15 -0
- package/docs/api-report.md +520 -16
- package/package.json +13 -11
- package/docs/api/foundation-comms.socket.hasvalidsession.md +0 -11
- package/docs/api/foundation-comms.socket.isconnected.md +0 -11
- package/docs/api/foundation-comms.socket.isreconnecting.md +0 -11
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [defaultNetworkMonitorConfig](./foundation-comms.defaultnetworkmonitorconfig.md)
|
4
|
+
|
5
|
+
## defaultNetworkMonitorConfig variable
|
6
|
+
|
7
|
+
Default NetworkMonitorConfig DI implementation.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
defaultNetworkMonitorConfig: NetworkMonitorConfig
|
13
|
+
```
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocket](./foundation-comms.defaultsocket.md) > [(constructor)](./foundation-comms.defaultsocket._constructor_.md)
|
4
|
+
|
5
|
+
## DefaultSocket.(constructor)
|
6
|
+
|
7
|
+
Constructs a new instance of the `DefaultSocket` class
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
constructor(messageBuilder: MessageBuilder, session: Session, serializer: JSONSerializer, uuid: UUID, status: SocketStatus);
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
| Parameter | Type | Description |
|
18
|
+
| --- | --- | --- |
|
19
|
+
| messageBuilder | [MessageBuilder](./foundation-comms.messagebuilder.md) | |
|
20
|
+
| session | [Session](./foundation-comms.session.md) | |
|
21
|
+
| serializer | JSONSerializer | |
|
22
|
+
| uuid | UUID | |
|
23
|
+
| status | [SocketStatus](./foundation-comms.socketstatus.md) | |
|
24
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocket](./foundation-comms.defaultsocket.md) > [connect](./foundation-comms.defaultsocket.connect.md)
|
4
|
+
|
5
|
+
## DefaultSocket.connect() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
connect(host: string, connectOptions?: SocketConnectOptions, reconnectOptions?: SocketReconnectOptions): Promise<boolean>;
|
11
|
+
```
|
12
|
+
|
13
|
+
## Parameters
|
14
|
+
|
15
|
+
| Parameter | Type | Description |
|
16
|
+
| --- | --- | --- |
|
17
|
+
| host | string | |
|
18
|
+
| connectOptions | [SocketConnectOptions](./foundation-comms.socketconnectoptions.md) | _(Optional)_ |
|
19
|
+
| reconnectOptions | [SocketReconnectOptions](./foundation-comms.socketreconnectoptions.md) | _(Optional)_ |
|
20
|
+
|
21
|
+
**Returns:**
|
22
|
+
|
23
|
+
Promise<boolean>
|
24
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocket](./foundation-comms.defaultsocket.md) > [hasValidSession](./foundation-comms.defaultsocket.hasvalidsession.md)
|
4
|
+
|
5
|
+
## DefaultSocket.hasValidSession property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
get hasValidSession(): boolean;
|
11
|
+
|
12
|
+
set hasValidSession(value: boolean);
|
13
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocket](./foundation-comms.defaultsocket.md) > [isConfigured](./foundation-comms.defaultsocket.isconfigured.md)
|
4
|
+
|
5
|
+
## DefaultSocket.isConfigured property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
get isConfigured(): boolean;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocket](./foundation-comms.defaultsocket.md) > [isConnected](./foundation-comms.defaultsocket.isconnected.md)
|
4
|
+
|
5
|
+
## DefaultSocket.isConnected property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
get isConnected(): boolean;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocket](./foundation-comms.defaultsocket.md) > [isConnectedSubject](./foundation-comms.defaultsocket.isconnectedsubject.md)
|
4
|
+
|
5
|
+
## DefaultSocket.isConnectedSubject property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
get isConnectedSubject(): import("rxjs").BehaviorSubject<boolean>;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocket](./foundation-comms.defaultsocket.md) > [isConnecting](./foundation-comms.defaultsocket.isconnecting.md)
|
4
|
+
|
5
|
+
## DefaultSocket.isConnecting property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
get isConnecting(): boolean;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocket](./foundation-comms.defaultsocket.md) > [isDisconnected](./foundation-comms.defaultsocket.isdisconnected.md)
|
4
|
+
|
5
|
+
## DefaultSocket.isDisconnected property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
get isDisconnected(): boolean;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocket](./foundation-comms.defaultsocket.md) > [isDisconnectedByServer](./foundation-comms.defaultsocket.isdisconnectedbyserver.md)
|
4
|
+
|
5
|
+
## DefaultSocket.isDisconnectedByServer property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
get isDisconnectedByServer(): boolean;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocket](./foundation-comms.defaultsocket.md) > [isReconnecting](./foundation-comms.defaultsocket.isreconnecting.md)
|
4
|
+
|
5
|
+
## DefaultSocket.isReconnecting property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
get isReconnecting(): boolean;
|
11
|
+
```
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocket](./foundation-comms.defaultsocket.md)
|
4
|
+
|
5
|
+
## DefaultSocket class
|
6
|
+
|
7
|
+
Default Socket implementation.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
export declare class DefaultSocket implements Socket
|
13
|
+
```
|
14
|
+
**Implements:** [Socket](./foundation-comms.socket.md)
|
15
|
+
|
16
|
+
## Constructors
|
17
|
+
|
18
|
+
| Constructor | Modifiers | Description |
|
19
|
+
| --- | --- | --- |
|
20
|
+
| [(constructor)(messageBuilder, session, serializer, uuid, status)](./foundation-comms.defaultsocket._constructor_.md) | | Constructs a new instance of the <code>DefaultSocket</code> class |
|
21
|
+
|
22
|
+
## Properties
|
23
|
+
|
24
|
+
| Property | Modifiers | Type | Description |
|
25
|
+
| --- | --- | --- | --- |
|
26
|
+
| [hasValidSession](./foundation-comms.defaultsocket.hasvalidsession.md) | | boolean | |
|
27
|
+
| [isConfigured](./foundation-comms.defaultsocket.isconfigured.md) | <code>readonly</code> | boolean | |
|
28
|
+
| [isConnected](./foundation-comms.defaultsocket.isconnected.md) | <code>readonly</code> | boolean | |
|
29
|
+
| [isConnectedSubject](./foundation-comms.defaultsocket.isconnectedsubject.md) | <code>readonly</code> | import("rxjs").BehaviorSubject<boolean> | |
|
30
|
+
| [isConnecting](./foundation-comms.defaultsocket.isconnecting.md) | <code>readonly</code> | boolean | |
|
31
|
+
| [isDisconnected](./foundation-comms.defaultsocket.isdisconnected.md) | <code>readonly</code> | boolean | |
|
32
|
+
| [isDisconnectedByServer](./foundation-comms.defaultsocket.isdisconnectedbyserver.md) | <code>readonly</code> | boolean | |
|
33
|
+
| [isReconnecting](./foundation-comms.defaultsocket.isreconnecting.md) | <code>readonly</code> | boolean | |
|
34
|
+
| [socketMessages](./foundation-comms.defaultsocket.socketmessages.md) | | () => [SocketSubject](./foundation-comms.socketsubject.md)<!-- --><[Message](./foundation-comms.message.md)<!-- -->> | |
|
35
|
+
|
36
|
+
## Methods
|
37
|
+
|
38
|
+
| Method | Modifiers | Description |
|
39
|
+
| --- | --- | --- |
|
40
|
+
| [connect(host, connectOptions, reconnectOptions)](./foundation-comms.defaultsocket.connect.md) | | |
|
41
|
+
| [reset()](./foundation-comms.defaultsocket.reset.md) | | |
|
42
|
+
| [send(message, needsHandling)](./foundation-comms.defaultsocket.send.md) | | |
|
43
|
+
| [sendForStream(message, onMessage, onError, onComplete)](./foundation-comms.defaultsocket.sendforstream.md) | | |
|
44
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocket](./foundation-comms.defaultsocket.md) > [reset](./foundation-comms.defaultsocket.reset.md)
|
4
|
+
|
5
|
+
## DefaultSocket.reset() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
reset(): void;
|
11
|
+
```
|
12
|
+
**Returns:**
|
13
|
+
|
14
|
+
void
|
15
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocket](./foundation-comms.defaultsocket.md) > [send](./foundation-comms.defaultsocket.send.md)
|
4
|
+
|
5
|
+
## DefaultSocket.send() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
send<T>(message: Message<T | any>, needsHandling?: boolean): Promise<Message | any>;
|
11
|
+
```
|
12
|
+
|
13
|
+
## Parameters
|
14
|
+
|
15
|
+
| Parameter | Type | Description |
|
16
|
+
| --- | --- | --- |
|
17
|
+
| message | [Message](./foundation-comms.message.md)<!-- --><T \| any> | |
|
18
|
+
| needsHandling | boolean | _(Optional)_ |
|
19
|
+
|
20
|
+
**Returns:**
|
21
|
+
|
22
|
+
Promise<[Message](./foundation-comms.message.md) \| any>
|
23
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocket](./foundation-comms.defaultsocket.md) > [sendForStream](./foundation-comms.defaultsocket.sendforstream.md)
|
4
|
+
|
5
|
+
## DefaultSocket.sendForStream() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
sendForStream<T>(message: Message<T | any>, onMessage: Function, onError: Function, onComplete?: Function): Observable<Message>;
|
11
|
+
```
|
12
|
+
|
13
|
+
## Parameters
|
14
|
+
|
15
|
+
| Parameter | Type | Description |
|
16
|
+
| --- | --- | --- |
|
17
|
+
| message | [Message](./foundation-comms.message.md)<!-- --><T \| any> | |
|
18
|
+
| onMessage | Function | |
|
19
|
+
| onError | Function | |
|
20
|
+
| onComplete | Function | _(Optional)_ |
|
21
|
+
|
22
|
+
**Returns:**
|
23
|
+
|
24
|
+
Observable<[Message](./foundation-comms.message.md)<!-- -->>
|
25
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocket](./foundation-comms.defaultsocket.md) > [socketMessages](./foundation-comms.defaultsocket.socketmessages.md)
|
4
|
+
|
5
|
+
## DefaultSocket.socketMessages property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
socketMessages: () => SocketSubject<Message>;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [closedClean](./foundation-comms.defaultsocketstatus.closedclean.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.closedClean property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
closedClean: any;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [closedCode](./foundation-comms.defaultsocketstatus.closedcode.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.closedCode property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
closedCode: any;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [closedReason](./foundation-comms.defaultsocketstatus.closedreason.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.closedReason property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
closedReason: any;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [hasValidSession](./foundation-comms.defaultsocketstatus.hasvalidsession.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.hasValidSession property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
hasValidSession: boolean;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [isConfigured](./foundation-comms.defaultsocketstatus.isconfigured.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.isConfigured property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
isConfigured: boolean;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [isConnected](./foundation-comms.defaultsocketstatus.isconnected.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.isConnected property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
isConnected: boolean;
|
11
|
+
```
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [isConnectedChanged](./foundation-comms.defaultsocketstatus.isconnectedchanged.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.isConnectedChanged() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
protected isConnectedChanged(): void;
|
11
|
+
```
|
12
|
+
**Returns:**
|
13
|
+
|
14
|
+
void
|
15
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [isConnectedSubject](./foundation-comms.defaultsocketstatus.isconnectedsubject.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.isConnectedSubject property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
isConnectedSubject: BehaviorSubject<boolean>;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [isConnecting](./foundation-comms.defaultsocketstatus.isconnecting.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.isConnecting property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
isConnecting: boolean;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [isDisconnected](./foundation-comms.defaultsocketstatus.isdisconnected.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.isDisconnected property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
get isDisconnected(): boolean;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [isDisconnectedByServer](./foundation-comms.defaultsocketstatus.isdisconnectedbyserver.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.isDisconnectedByServer property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
get isDisconnectedByServer(): boolean;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [isReconnecting](./foundation-comms.defaultsocketstatus.isreconnecting.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.isReconnecting property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
isReconnecting: boolean;
|
11
|
+
```
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [isReconnectingChanged](./foundation-comms.defaultsocketstatus.isreconnectingchanged.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.isReconnectingChanged() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
protected isReconnectingChanged(): void;
|
11
|
+
```
|
12
|
+
**Returns:**
|
13
|
+
|
14
|
+
void
|
15
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus class
|
6
|
+
|
7
|
+
Default SocketStatus implementation.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
export declare class DefaultSocketStatus implements SocketStatus
|
13
|
+
```
|
14
|
+
**Implements:** [SocketStatus](./foundation-comms.socketstatus.md)
|
15
|
+
|
16
|
+
## Properties
|
17
|
+
|
18
|
+
| Property | Modifiers | Type | Description |
|
19
|
+
| --- | --- | --- | --- |
|
20
|
+
| [closedClean](./foundation-comms.defaultsocketstatus.closedclean.md) | | any | |
|
21
|
+
| [closedCode](./foundation-comms.defaultsocketstatus.closedcode.md) | | any | |
|
22
|
+
| [closedReason](./foundation-comms.defaultsocketstatus.closedreason.md) | | any | |
|
23
|
+
| [hasValidSession](./foundation-comms.defaultsocketstatus.hasvalidsession.md) | | boolean | |
|
24
|
+
| [isConfigured](./foundation-comms.defaultsocketstatus.isconfigured.md) | | boolean | |
|
25
|
+
| [isConnected](./foundation-comms.defaultsocketstatus.isconnected.md) | | boolean | |
|
26
|
+
| [isConnectedSubject](./foundation-comms.defaultsocketstatus.isconnectedsubject.md) | | BehaviorSubject<boolean> | |
|
27
|
+
| [isConnecting](./foundation-comms.defaultsocketstatus.isconnecting.md) | | boolean | |
|
28
|
+
| [isDisconnected](./foundation-comms.defaultsocketstatus.isdisconnected.md) | <code>readonly</code> | boolean | |
|
29
|
+
| [isDisconnectedByServer](./foundation-comms.defaultsocketstatus.isdisconnectedbyserver.md) | <code>readonly</code> | boolean | |
|
30
|
+
| [isReconnecting](./foundation-comms.defaultsocketstatus.isreconnecting.md) | | boolean | |
|
31
|
+
| [reconnectionLimitReached](./foundation-comms.defaultsocketstatus.reconnectionlimitreached.md) | | boolean | |
|
32
|
+
|
33
|
+
## Methods
|
34
|
+
|
35
|
+
| Method | Modifiers | Description |
|
36
|
+
| --- | --- | --- |
|
37
|
+
| [isConnectedChanged()](./foundation-comms.defaultsocketstatus.isconnectedchanged.md) | <code>protected</code> | |
|
38
|
+
| [isReconnectingChanged()](./foundation-comms.defaultsocketstatus.isreconnectingchanged.md) | <code>protected</code> | |
|
39
|
+
| [onClose(event)](./foundation-comms.defaultsocketstatus.onclose.md) | | |
|
40
|
+
| [resetClosedState()](./foundation-comms.defaultsocketstatus.resetclosedstate.md) | <code>protected</code> | |
|
41
|
+
| [serialize()](./foundation-comms.defaultsocketstatus.serialize.md) | | |
|
42
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [onClose](./foundation-comms.defaultsocketstatus.onclose.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.onClose() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
onClose(event: CloseEvent): void;
|
11
|
+
```
|
12
|
+
|
13
|
+
## Parameters
|
14
|
+
|
15
|
+
| Parameter | Type | Description |
|
16
|
+
| --- | --- | --- |
|
17
|
+
| event | CloseEvent | |
|
18
|
+
|
19
|
+
**Returns:**
|
20
|
+
|
21
|
+
void
|
22
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [reconnectionLimitReached](./foundation-comms.defaultsocketstatus.reconnectionlimitreached.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.reconnectionLimitReached property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
reconnectionLimitReached: boolean;
|
11
|
+
```
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [resetClosedState](./foundation-comms.defaultsocketstatus.resetclosedstate.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.resetClosedState() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
protected resetClosedState(): void;
|
11
|
+
```
|
12
|
+
**Returns:**
|
13
|
+
|
14
|
+
void
|
15
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSocketStatus](./foundation-comms.defaultsocketstatus.md) > [serialize](./foundation-comms.defaultsocketstatus.serialize.md)
|
4
|
+
|
5
|
+
## DefaultSocketStatus.serialize() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
serialize(): SerializedSocketStatus;
|
11
|
+
```
|
12
|
+
**Returns:**
|
13
|
+
|
14
|
+
[SerializedSocketStatus](./foundation-comms.serializedsocketstatus.md)
|
15
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [GenesisConnectEvents](./foundation-comms.genesisconnectevents.md)
|
4
|
+
|
5
|
+
## GenesisConnectEvents type
|
6
|
+
|
7
|
+
Genesis connect events that can be monitored to invoke resource checking.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
export type GenesisConnectEvents = 'stream' | 'commit';
|
13
|
+
```
|
14
|
+
|
15
|
+
## Remarks
|
16
|
+
|
17
|
+
'steam' and 'commit' are monitored by default and will invoke resource checking. 'metadata' request failures are monitored for the purpose of surfacing such errors to the console only. For now, 'metadata' errors are unrecoverable.
|
18
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [getNetworkMonitor](./foundation-comms.getnetworkmonitor.md)
|
4
|
+
|
5
|
+
## getNetworkMonitor() function
|
6
|
+
|
7
|
+
Gets NetworkMonitor from the DI container.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
export declare function getNetworkMonitor(): NetworkMonitor;
|
13
|
+
```
|
14
|
+
**Returns:**
|
15
|
+
|
16
|
+
[NetworkMonitor](./foundation-comms.networkmonitor.md)
|
17
|
+
|
18
|
+
## Remarks
|
19
|
+
|
20
|
+
A utility method for host applications that are not using decorators or the DI container.
|
21
|
+
|
22
|
+
## Example
|
23
|
+
|
24
|
+
|
25
|
+
```ts
|
26
|
+
import { getNetworkMonitor } from '@genesislcap/foundation-comms';
|
27
|
+
...
|
28
|
+
private monitor = getNetworkMonitor();
|
29
|
+
```
|
30
|
+
|