Cysharp/MessagePipe

Bi-directional interprocess

Torinth opened this issue · 1 comments

Hi i am trying to have bi directional interprocess communications. I have this for the server
services.AddMessagePipe();
services.AddMessagePipeTcpInterprocess("127.0.0.1", 50399, options =>
{
options.HostAsServer = true;
});

services.AddMessagePipeTcpInterprocess("127.0.0.1", 50400, options =>
{
options.HostAsServer = false;
});

and this for the client

services.AddMessagePipe();
services.AddMessagePipeTcpInterprocess("127.0.0.1", 50399, options =>
{
options.HostAsServer = false;
});
services.AddMessagePipeTcpInterprocess("127.0.0.1", 50400, options =>
{
options.HostAsServer = true;
});

I have a singleton on each side that injects in both an IDistributedSubscriber and IDistributedPublisher but im getting an error that only one protocol/host/port can be used. Is it possible to setup bi directional communications somehow?

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.