gemorroj / ws-client-server
Weboscket client-server testing
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.1.3
- ext-json: *
- amphp/mysql: dev-master
- amphp/react-adapter: ^1.1
- amphp/websocket: ^0.2.2
- cboden/ratchet: ^0.4.1
This package is auto-updated.
Last update: 2024-12-08 22:47:21 UTC
README
import mysql dump example-db.sql
Start Websocket server and start Websocket emitter
# 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)
bin/ws-single-server-emitter-timer
Or you can start joint Websocket server and Emitter (recommended solution)
bin/ws-joint-server-emitter-timer
open public/index.html
into browser
for auth you can use https://php.net/hash_hmac