|
@ -28,7 +28,6 @@ websockets::TestProtocol<User> default_protocol{ |
|
|
// write (will always come after receive)
|
|
|
// write (will always come after receive)
|
|
|
[](User& user, basic_websocket_info) -> std::string{ |
|
|
[](User& user, basic_websocket_info) -> std::string{ |
|
|
js::Object ret; |
|
|
js::Object ret; |
|
|
ret["people"] = ptrvector_to_json(app->people_online); |
|
|
|
|
|
ret["balls"] = vector_to_json(app->sim.balls); |
|
|
ret["balls"] = vector_to_json(app->sim.balls); |
|
|
ret["lines"] = vector_to_json(app->sim.lines); |
|
|
ret["lines"] = vector_to_json(app->sim.lines); |
|
|
return write_json(ret); |
|
|
return write_json(ret); |
|
|