diff --git a/sockets/__init__.py b/sockets/__init__.py index 4140690..b9389b5 100644 --- a/sockets/__init__.py +++ b/sockets/__init__.py @@ -4,8 +4,9 @@ from sockets.blockdag import emit_blockdag from sockets.bluescore import emit_bluescore from sockets.coinsupply import emit_coin_supply +from sockets.mempool import emit_mempool -VALID_ROOMS = ["blocks", "coinsupply", "blockdag", "bluescore"] +VALID_ROOMS = ["blocks", "coinsupply", "blockdag", "bluescore", "mempool"] @sio.on("join-room") @@ -23,3 +24,5 @@ async def join_room(sid, room_name): if room_name == "bluescore": await emit_bluescore() + if room_name == "mempool": + await emit_mempool()