https://github.com/j7mbo/websock-test
Wtf is this
https://github.com/j7mbo/websock-test
Last synced: 2 months ago
JSON representation
Wtf is this
- Host: GitHub
- URL: https://github.com/j7mbo/websock-test
- Owner: J7mbo
- Created: 2017-04-21T20:51:15.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-21T21:06:13.000Z (about 8 years ago)
- Last Synced: 2025-01-30T21:29:33.146Z (4 months ago)
- Language: PHP
- Size: 101 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Usage
-- Run `vagrant up`
- Type in your admin password when prompted so
[hostmanager plugin](https://github.com/devopsgroup-io/vagrant-hostmanager) can update your /etc/hosts file with
"app.local"
- Go and make yourself a cup of tea
- The following should all be run within vagrant (`vagrant ssh` then `cd /vagrant` obviously)
- Run the broker (router): `php web/router.php` in 1 terminal window
- Open `http://app.local` on your host machine and open console
- Run a worker: `php web/worker.php` in another terminal window
- Observe javascript console and see the worker having picked up the job and sent it over RPC to be sent back over WSEverything is being offloaded into a queue and utilize a 5 second wait in the worker to show how this isn't blocking.