websocket - How to start in phpsocketio?
漂亮男人
漂亮男人 2017-05-16 13:10:10
0
2
926

phpsocketio is based on Workerman
I downloaded the source code from github and modified the logic to run it
If the startup method is
php server.php restart
php server.php start

If you start it like this, you can receive and forward messages
But if I use
php server.php start -d
This will not work. The client will be disconnected as soon as it is connected

I would like to ask what is the difference between starting with start and starting with start -d

I can’t let php server.php start be placed there

漂亮男人
漂亮男人

reply all(2)
巴扎黑

Finally the problem was found because Workerman must use its own mysql framework
If you use other frameworks, the running result will be like a script running from beginning to end, so the database object cannot be persisted

So you only need to install workerman/mysql

仅有的幸福

start -d is to start the daemon process

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template