http-request-manager 18.7.3 → 18.7.4
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.
|
@@ -3717,7 +3717,7 @@ class HTTPManagerStateService extends ComponentStore {
|
|
|
3717
3717
|
/**
|
|
3718
3718
|
* Send a message to channel(s)
|
|
3719
3719
|
* @param message - The message content
|
|
3720
|
-
* @param channels - Optional array of channel names (
|
|
3720
|
+
* @param channels - Optional array of channel names (passed as-is, caller should include prefix)
|
|
3721
3721
|
* Use 'allChannels' to broadcast to all
|
|
3722
3722
|
*/
|
|
3723
3723
|
wsMessaging(message, channels) {
|
|
@@ -3726,10 +3726,10 @@ class HTTPManagerStateService extends ComponentStore {
|
|
|
3726
3726
|
console.log('📤 wsMessaging called with channels:', channels);
|
|
3727
3727
|
if (this.wsConnection && this.apiOptions.ws) {
|
|
3728
3728
|
// If specific channels provided, send to each channel
|
|
3729
|
+
// Channels are passed as-is - caller is responsible for including the correct prefix
|
|
3729
3730
|
if (channels && channels.length > 0) {
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
prefixedChannels.forEach(channel => {
|
|
3731
|
+
console.log(`📤 Sending to ${channels.length} channel(s):`, channels);
|
|
3732
|
+
channels.forEach(channel => {
|
|
3733
3733
|
if (channel === 'allChannels') {
|
|
3734
3734
|
this.httpManagerService.sendBroadcast(messageInfo);
|
|
3735
3735
|
}
|