basis-company / nats.php

nats jetstream client for php
116 stars 29 forks source link

Async client with using Fiber #48

Open PNixx opened 8 months ago

PNixx commented 8 months ago

Are there any plans to make the project asynchronous using the library https://github.com/revoltphp/event-loop and Fiber?

nekufa commented 8 months ago

Hello @PNixx! Looks like it can be implemented using client inheritance or extract connection logic and make alternate async connection. We don't have any plans on this feature yet, would you like to implement it and make merge request?

PNixx commented 8 months ago

Simple inheritance won't help. Here you need to radically redo the logic of working with the socket.

withinboredom commented 4 months ago

See #62