Questions tagged [message-channel]

The `MessageChannel` interface of the Channel Messaging API allows us to create a new message channel and send data through it via its two `MessagePort` properties.

The Channel Messaging API allows two separate scripts running in different browsing contexts attached to the same document (e.g., two IFrames, or the main document and an IFrame, or two documents via a SharedWorker) to communicate directly, passing messages between one another through two-way channels (or pipes) with a port at each end. In this article we'll explore the basics of using this technology.

Source: MDN Web API Reference - Channel Messaging API

Related APIs

28 questions
0
votes
1 answer

Custom MessageChannel bizarre behavior in Node.js 19

As the title says, I'm experiencing a behavior that I find pretty strange regarding a re-implementation of mine of the MessageChannel provided by Node.js. The goal of my implementation is to provide better performance for sending UTF-16 strings to…
user11874489
0
votes
1 answer

service worker losts ports to communicate with browser after reactivates

I have the following code inside my front-end code: const messageChannel = new MessageChannel(); navigator.serviceWorker.controller.postMessage( { type: 'INIT_PORT', }, [messageChannel.port2], ); And this…
0
votes
1 answer

JDA Discord bot, read last message of textchannel

I want that my Discord jda bot reads the last message of an textchannel after starting. So I call : textChannel.getHistory().getMessageById(config.getLatestMessageId()); The MessageHistory class doesn't have an getLatestMessage method somehow. And…
0
votes
1 answer

Spring integration route can't dispatch message

So, problem is with router. When the router try send message to channel I'l got the error: Dispatcher has no subscribers for channel 'newTypingNotificationHandler.input'. But I have integrationFlow defenition for this channel name. @Bean public…
0
votes
1 answer

Spring Integration TCP client connection issue on 2nd session of request

I have a Spring Integration + spring batch requirement where i have to establish a TCP client connection with remote server and send the request consisting of thousands of records processed from spring batch. I'm using MessageBuilder for the payload…
0
votes
1 answer

How to set the property acks = all in properties file of a spring boot application

I have tried the following spring.kafka.producer.acks= - 1 And spring.cloud.stream.kafka.binder.requiredAcks= - 1 Both are not working and my MessageChannel.send() is still returning true with all the brokers down
0
votes
0 answers

What exactly is a message channel?

I've done my research. Basically, a message channel is the way an api can send a message to another api. But what, literally, is a message channel? Is it like a port? Or do you just implement it in your code?
Rigo Sarmiento
  • 434
  • 5
  • 21
0
votes
1 answer

How to create dynamically Spring Integration MessageChannels

In the Spring integration the message channel can be configured like this:
0
votes
1 answer

Clicking Google reCAPTCHA checkmark does nothing on IE9

Google reCAPTCHA is not working on IE9 (compatibility view is disabled). It loads correctly but the checkmark is not clickable. After some seconds, the checkmark disappears and it shows: Please upgrade to a supported browser to get a reCAPTCHA…
0
votes
1 answer

MessageDeliveryException: Dispatcher has no subscribers

I'm trying to use spring-integration-kafka-2.1.0.RELEASE in my company's project.However, it doesn't work due to the exception which is listed below: org.springframework.messaging.MessageDeliveryException: Dispatcher has no subscribers for…
Merorin
  • 13
  • 4
0
votes
1 answer

Null correlation not allowed. Maybe the CorrelationStrategy is failing?

I am using spring integration,and I am using default correlation strategy, that is i am not explicitly writing code for correlation strategy,everything works fine till the splitter, after the splitter there is a service activator which does some…
0
votes
1 answer

Error when sending bytes through TCP: Unexpected message - no endpoint registered with connection interceptor

I'm trying to rewrite integration.xml in an application to Java Config using DSL. My integration flow goes like this: Communication object comes to sendCommunication channel sendCommunication channel is routed into two different channels objects in…
Jezor
  • 3,253
  • 2
  • 19
  • 43
0
votes
2 answers

Unable to autowire MessageChannel in Spring Integration

I'm trying out FTP file upload and download example using spring integration. I want to manually upload a file to the outputChannel. I don't want invoke it when there is a change in inputChannel. So, the FTPApplication should just have a declaration…
User1230321
  • 1,435
  • 4
  • 23
  • 39
1
2