MultiServer: coop support

Just connect multiple clients to the same slot
This commit is contained in:
Fabian Dill
2021-10-20 05:56:28 +02:00
parent 7a9f6e2a8e
commit 6b4bdf569c
2 changed files with 79 additions and 81 deletions

View File

@@ -62,7 +62,7 @@ def _scan_for_TypedTuples(obj: typing.Any) -> typing.Any:
data = obj._asdict()
data["class"] = obj.__class__.__name__
return data
if isinstance(obj, (tuple, list)):
if isinstance(obj, (tuple, list, set)):
return tuple(_scan_for_TypedTuples(o) for o in obj)
if isinstance(obj, dict):
return {key: _scan_for_TypedTuples(value) for key, value in obj.items()}