reactphp / socket

Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP.
https://reactphp.org/socket/
MIT License
1.21k stars 157 forks source link

Listening multiple socket chanels on the same server #272

Closed bobimicroweber closed 2 years ago

bobimicroweber commented 3 years ago

Hello, how can i make a multiple socket channel listen the same server. So i want to subscribe to binance socket to listen the many binance accounts and receive their user data actions. I try to make a socket listening in foreach but , only one listenin is activated.. another ones its not. Can you guys help me

WyriHaximus commented 3 years ago

Are you using the socket client directly or an abstraction on top of it? Because opening two connections to a remote server is one of the core goals of this package. Do you have some code I can have a look at?

clue commented 2 years ago

There are no known limitations, so creating any number of connections works just fine. If you're seeing any issues, please share more details such as error messages and a gist to reproduce and we're happy to take a look at this.

In the meantime, I believe this has been answered, so I'm closing this for now. Please come back with more details if this problem persists and we can always reopen this :+1: