http-request-manager 18.5.21 → 18.5.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "http-request-manager",
|
|
3
|
-
"version": "18.5.
|
|
3
|
+
"version": "18.5.23",
|
|
4
4
|
"homepage": "https://wavecoders.ca",
|
|
5
5
|
"author": "Mike Bonifacio <wavecoders@gmail.com> (http://wavecoders@gmail.com/)",
|
|
6
6
|
"description": "This is an Angular Module containing Components/Services using Material",
|
|
@@ -370,6 +370,9 @@ declare class HTTPManagerStateService<T extends {
|
|
|
370
370
|
wsNextRetry$: Observable<number>;
|
|
371
371
|
private messages;
|
|
372
372
|
messages$: Observable<any[]>;
|
|
373
|
+
private userListByChannel;
|
|
374
|
+
userListByChannel$: Observable<Map<string, any[]>>;
|
|
375
|
+
getUsersForChannel$(channel: string): Observable<any[]>;
|
|
373
376
|
private userList;
|
|
374
377
|
userList$: Observable<any[]>;
|
|
375
378
|
private user;
|
|
@@ -1501,6 +1504,14 @@ declare class StateRequestServiceDemo extends HTTPManagerStateService<any> {
|
|
|
1501
1504
|
updateConnection(server: string, wsServer: string, jwtToken: string, user: any): void;
|
|
1502
1505
|
sendMessage(data: ChannelMessage, channels?: string[]): void;
|
|
1503
1506
|
getAllChannels(): void;
|
|
1507
|
+
/**
|
|
1508
|
+
* Subscribe to a channel to receive messages
|
|
1509
|
+
*/
|
|
1510
|
+
subscribeToChannel(channel: string): void;
|
|
1511
|
+
/**
|
|
1512
|
+
* Unsubscribe from a channel
|
|
1513
|
+
*/
|
|
1514
|
+
unsubscribeFromChannel(channel: string): void;
|
|
1504
1515
|
static ɵfac: i0.ɵɵFactoryDeclaration<StateRequestServiceDemo, never>;
|
|
1505
1516
|
static ɵprov: i0.ɵɵInjectableDeclaration<StateRequestServiceDemo>;
|
|
1506
1517
|
}
|
|
@@ -1633,18 +1644,19 @@ declare class WsMessagingComponent implements OnInit, OnDestroy {
|
|
|
1633
1644
|
private destroy$;
|
|
1634
1645
|
fb: FormBuilder;
|
|
1635
1646
|
stateRequestServiceDemo: StateRequestServiceDemo;
|
|
1647
|
+
toastService: ToastMessageDisplayService;
|
|
1636
1648
|
channels$: Observable<string[]>;
|
|
1649
|
+
subscribedChannels$: Observable<string[]>;
|
|
1637
1650
|
user$: Observable<WSUser | null>;
|
|
1638
1651
|
data$: Observable<any>;
|
|
1639
1652
|
connectionStatus$: Observable<boolean>;
|
|
1653
|
+
newChannelName: FormControl<string | null>;
|
|
1640
1654
|
messages: _angular_forms.FormGroup<{
|
|
1641
|
-
|
|
1655
|
+
selectedChannels: FormControl<string[] | null>;
|
|
1642
1656
|
content: FormControl<string | null>;
|
|
1643
1657
|
}>;
|
|
1644
|
-
get
|
|
1658
|
+
get selectedChannels(): FormControl;
|
|
1645
1659
|
get content(): FormControl;
|
|
1646
|
-
get isValid(): boolean;
|
|
1647
|
-
get selectedChannels(): any;
|
|
1648
1660
|
communicationMessages$: Observable<any[]>;
|
|
1649
1661
|
latestCommunicationMessages$: Observable<any>;
|
|
1650
1662
|
chat$: Observable<{
|
|
@@ -1653,6 +1665,23 @@ declare class WsMessagingComponent implements OnInit, OnDestroy {
|
|
|
1653
1665
|
} | any>;
|
|
1654
1666
|
ngOnInit(): void;
|
|
1655
1667
|
ngOnDestroy(): void;
|
|
1668
|
+
/**
|
|
1669
|
+
* Create a new public channel without auto-subscribing
|
|
1670
|
+
* Public channels use PUB- prefix, system channels use SYS- prefix
|
|
1671
|
+
*/
|
|
1672
|
+
onCreateChannel(): void;
|
|
1673
|
+
/**
|
|
1674
|
+
* Subscribe to a channel to receive messages
|
|
1675
|
+
*/
|
|
1676
|
+
onSubscribeToChannel(channel: string): void;
|
|
1677
|
+
/**
|
|
1678
|
+
* Unsubscribe from a channel
|
|
1679
|
+
*/
|
|
1680
|
+
onUnsubscribeFromChannel(channel: string): void;
|
|
1681
|
+
/**
|
|
1682
|
+
* Check if currently subscribed to a channel
|
|
1683
|
+
*/
|
|
1684
|
+
isSubscribed(channel: string, subscribedChannels: string[]): boolean;
|
|
1656
1685
|
onSendMessage(user: WSUser): void;
|
|
1657
1686
|
static ɵfac: i0.ɵɵFactoryDeclaration<WsMessagingComponent, never>;
|
|
1658
1687
|
static ɵcmp: i0.ɵɵComponentDeclaration<WsMessagingComponent, "app-ws-messaging", never, { "server": { "alias": "server"; "required": false; }; "wsServer": { "alias": "wsServer"; "required": false; }; "jwtToken": { "alias": "jwtToken"; "required": false; }; "user": { "alias": "user"; "required": false; }; }, {}, never, never, false, never>;
|
|
Binary file
|