Skip to content

Instantly share code, notes, and snippets.

View clinthowarth's full-sized avatar

Clint Howarth clinthowarth

  • Crayon
  • Massachusetts, USA
View GitHub Profile
@clinthowarth
clinthowarth / flask_geventwebsocket_example.py
Created March 19, 2012 03:54 — 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')