Skip to content

Instantly share code, notes, and snippets.

View wtpayne's full-sized avatar

William Payne wtpayne

View GitHub Profile
@wtpayne
wtpayne / flask_geventwebsocket_example.py
Created July 6, 2012 23:37 — forked from lrvick/flask_geventwebsocket_example.py
Simple Websocket echo client/server with Flask and gevent / gevent-websocket
from geventwebsocket.handler import WebSocketHandler
from gevent.pywsgi import WSGIServer
from flask import Flask, request, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')