gemorroj/ws-client-server

Weboscket client-server testing

dev-master 2018-09-01 18:33 UTC

This package is auto-updated.

Last update: 2024-11-08 22:39:11 UTC


README

see ratchetphp/Ratchet#626

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