WebSockets PHP Demos › Multi-User Mouse Tracking

Authored by
@cballou on twitter
fork on github

In this demo, we demonstrate the ability to track the mouse/touch position of all connected clients. The WS server simply acts as an intermediary, distributing JSON encoded messages to all connected clients via open socket connections. It is the responsibility of the client-side JavaScript to parse and interpret these messages.

1 connected users