walkor / phpsocket.io

A server side alternative implementation of socket.io in PHP based on workerman.
2.3k stars 508 forks source link

Multiple threads to allow for event listeners to work properly asynchronously #295

Open theluci opened 1 year ago

theluci commented 1 year ago

I am trying to call a second event for a second event listener while still running the code within the first event listener, but all events are not callable until the first event is finished running, I cannot even run socket.disconnect() via the client. How can I do create another thread to run the first event listener while simultaneously allowing for the second one to also be called? Thanks!