http-request-manager 18.5.22 → 18.6.0
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.
|
|
3
|
+
"version": "18.6.0",
|
|
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",
|
|
@@ -1504,6 +1504,14 @@ declare class StateRequestServiceDemo extends HTTPManagerStateService<any> {
|
|
|
1504
1504
|
updateConnection(server: string, wsServer: string, jwtToken: string, user: any): void;
|
|
1505
1505
|
sendMessage(data: ChannelMessage, channels?: string[]): void;
|
|
1506
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;
|
|
1507
1515
|
static ɵfac: i0.ɵɵFactoryDeclaration<StateRequestServiceDemo, never>;
|
|
1508
1516
|
static ɵprov: i0.ɵɵInjectableDeclaration<StateRequestServiceDemo>;
|
|
1509
1517
|
}
|
|
@@ -1636,18 +1644,23 @@ declare class WsMessagingComponent implements OnInit, OnDestroy {
|
|
|
1636
1644
|
private destroy$;
|
|
1637
1645
|
fb: FormBuilder;
|
|
1638
1646
|
stateRequestServiceDemo: StateRequestServiceDemo;
|
|
1647
|
+
toastService: ToastMessageDisplayService;
|
|
1639
1648
|
channels$: Observable<string[]>;
|
|
1649
|
+
subscribedChannels$: Observable<string[]>;
|
|
1650
|
+
/**
|
|
1651
|
+
* Helper to ensure channel has PUB- prefix for outgoing communication
|
|
1652
|
+
*/
|
|
1653
|
+
private toPublicChannel;
|
|
1640
1654
|
user$: Observable<WSUser | null>;
|
|
1641
1655
|
data$: Observable<any>;
|
|
1642
1656
|
connectionStatus$: Observable<boolean>;
|
|
1657
|
+
newChannelName: FormControl<string | null>;
|
|
1643
1658
|
messages: _angular_forms.FormGroup<{
|
|
1644
|
-
|
|
1659
|
+
selectedChannels: FormControl<string[] | null>;
|
|
1645
1660
|
content: FormControl<string | null>;
|
|
1646
1661
|
}>;
|
|
1647
|
-
get
|
|
1662
|
+
get selectedChannels(): FormControl;
|
|
1648
1663
|
get content(): FormControl;
|
|
1649
|
-
get isValid(): boolean;
|
|
1650
|
-
get selectedChannels(): any;
|
|
1651
1664
|
communicationMessages$: Observable<any[]>;
|
|
1652
1665
|
latestCommunicationMessages$: Observable<any>;
|
|
1653
1666
|
chat$: Observable<{
|
|
@@ -1656,6 +1669,26 @@ declare class WsMessagingComponent implements OnInit, OnDestroy {
|
|
|
1656
1669
|
} | any>;
|
|
1657
1670
|
ngOnInit(): void;
|
|
1658
1671
|
ngOnDestroy(): void;
|
|
1672
|
+
/**
|
|
1673
|
+
* Create a new public channel without auto-subscribing
|
|
1674
|
+
* Public channels use PUB- prefix, system channels use SYS- prefix
|
|
1675
|
+
*/
|
|
1676
|
+
onCreateChannel(): void;
|
|
1677
|
+
/**
|
|
1678
|
+
* Subscribe to a channel to receive messages
|
|
1679
|
+
* Auto-adds PUB- prefix for outgoing communication
|
|
1680
|
+
*/
|
|
1681
|
+
onSubscribeToChannel(channel: string): void;
|
|
1682
|
+
/**
|
|
1683
|
+
* Unsubscribe from a channel
|
|
1684
|
+
* Auto-adds PUB- prefix for outgoing communication
|
|
1685
|
+
*/
|
|
1686
|
+
onUnsubscribeFromChannel(channel: string): void;
|
|
1687
|
+
/**
|
|
1688
|
+
* Check if currently subscribed to a channel
|
|
1689
|
+
* Compares display names (without PUB- prefix)
|
|
1690
|
+
*/
|
|
1691
|
+
isSubscribed(channel: string, subscribedChannels: string[]): boolean;
|
|
1659
1692
|
onSendMessage(user: WSUser): void;
|
|
1660
1693
|
static ɵfac: i0.ɵɵFactoryDeclaration<WsMessagingComponent, never>;
|
|
1661
1694
|
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
|