Share pose detection data between multiple browser clients connected to the same server.
This code supports of the Movement Practices choreography project.
The client and server are written in Typescript. They use the Socket.IO library to communicate.
Install npm.
Run yarn install
.
- Run
yarn dev
. - Use a web browser to visit http://localhost:3000.
Set up and start the server as above.
The server will restart when source files are changed.
The browser page needs to be manually reloaded.
Additional development documentation is in this repository's docs/
directory,
and the project wiki.
Subdirectories:
common/
— source files that are shared between the client and serverconfig/
— configuration files for the client and serverpublic/
— static files that are served by the embedded web serverserver/
— TypeScript source code for the http (web and API) serversrc/
— TypeScript source code for client
Top-level files:
index.html
— static file that is served by the embedded web servernodemon.json
— Nodemon configuration filepackage.json
— an npm package, that specifies library dependencies, build tools, and the build and development commands.
The client source directory is named src
instead of client
, so that it will
work with the default configuration of Vite.
Copyright 2022 by Oliver Steele. Available under the MIT License.