Skip to content

Instantly share code, notes, and snippets.

View mpjeffin-gee's full-sized avatar

Jeffin Mathew mpjeffin-gee

View GitHub Profile
@punchagan
punchagan / hello.py
Last active December 21, 2023 23:36
A simple Flask sockets example
# Copy of http://stackoverflow.com/a/20104705
from flask import Flask, render_template
from flask_sockets import Sockets
app = Flask(__name__)
app.debug = True
sockets = Sockets(app)
@sockets.route('/echo')