mirror of
https://github.com/kristoferssolo/School.git
synced 2025-10-21 20:10:38 +00:00
8 lines
180 B
Python
8 lines
180 B
Python
from bottle import request
|
|
|
|
def websocket(callback):
|
|
def wrapper(*args, **kwargs):
|
|
callback(request.environ.get('wsgi.websocket'), *args, **kwargs)
|
|
|
|
return wrapper
|