[feature] Using custom-loop created outside of binance-api?
Is there any way to use a custom LoopInterface to create own code-logic around the api, create multiple subscriptions and use them in one LoopInterface?
For example if I would like to use ticker and trades function each of the api-methods creates an EventLoop inside the method provided by binance-api and therefore the whole php-script is only running in this loop.
I would prever being able to define my own EventLoop in my code, set this one to the api and create multiple subscriptions and callback-functions being able to run in parallel.
I think this could be simply archived. Create a 'setLoop' method accepting LoopInterface, set it to class-variable providing this custom-LoopInterface and in each api-method check if there is a custom LoopInterface ($this->loop) and only use local EventLoop\Factory::create if $this->loop is null.
Hey @typoworx-de i'm not sure what this has to be with this api ?
I think this could be simply archived.
Do it if you think so ) and dont forget to makle pull request