Skip to content

Instantly share code, notes, and snippets.

View Rockstar5645's full-sized avatar

Akhil Gandu Rockstar5645

View GitHub Profile
import asyncio
client_list = {}
async def chat_room(reader, writer):
addr = writer.get_extra_info('peername')
print(f'got a connection from client at: {addr}')
data = await reader.read(100)
if not data:
alert(1);