Skip to content

Instantly share code, notes, and snippets.

View AZLisme's full-sized avatar

AZLisme AZLisme

View GitHub Profile
AZLisme /
Created May 8, 2017 02:12
test if server can detect connection lost.
# -*- encoding: utf-8 -*-
# pip install flask flask-socketio eventlet
# pip uninstall -y python-engineio
# pip install git+
from flask import Flask, render_template, request
from flask_socketio import SocketIO, emit
# Change to your local ip