This example project is part of a KOTLIN/Everywhere Bremen Event. It demonstrates the basic usage of Flows within the realm of a simple tic tac toe game.
The slides can be found here: tiny.cc/keb-flow
The client is configured to run on an Android emulator, because it uses 10.0.2.2 as Websocket URL.
Feel free to change it in FlowGameFragment
(line 151).
You can find a simple server written in Python in the project main directory. To use it, first ensure that you have Python3 installed, and then install the dependencies with PIP:
$ pip3 install --user SimpleWebSocketServer
Afterwards you can start the server:
$ ./server.py
The server runs a websocket on localhost:8000
and will broadcast any message sent to it to any
connected clients but the sender.