https://github.com/gemorroj/ws-client-server
test websocket client-server
https://github.com/gemorroj/ws-client-server
Last synced: 3 months ago
JSON representation
test websocket client-server
- Host: GitHub
- URL: https://github.com/gemorroj/ws-client-server
- Owner: Gemorroj
- License: mit
- Created: 2018-03-08T07:33:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-01T18:34:41.000Z (over 6 years ago)
- Last Synced: 2025-01-13T16:19:10.708Z (5 months ago)
- Language: PHP
- Size: 15.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Websocket client-server testing
see https://github.com/ratchetphp/Ratchet/issues/626
import mysql dump `example-db.sql`
### Start Websocket server and start Websocket emitter
```bash
# ws server
bin/ws-server# ws emitters
bin/ws-emitter-timer
# or
bin/ws-emitter-simple
```### Or you can start single Websocket server and Emitter (connect into websocket protocol)
```bash
bin/ws-single-server-emitter-timer
```### Or you can start joint Websocket server and Emitter (recommended solution)
```bash
bin/ws-joint-server-emitter-timer
```open `public/index.html` into browser
for auth you can use https://php.net/hash_hmac