Skip to content

Instantly share code, notes, and snippets.

@JeOam
JeOam / ws_app.py
Created August 30, 2016 02:51 — forked from kracekumar/ws_app.py
Simple websocket server with uvloop.
# -*- coding: utf-8 -*-
import asyncio
import uvloop
from aiohttp.web import Application, MsgType, WebSocketResponse
def add_socket(app, socket, user_id):
if user_id in app['connections']:
pass