You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
382 B

import sys
if sys.version_info >= (3, 5):
try:
from engineio.async_drivers.tornado import get_tornado_handler as \
get_engineio_handler
except ImportError:
from engineio.async_tornado import get_tornado_handler as \
get_engineio_handler
def get_tornado_handler(socketio_server):
return get_engineio_handler(socketio_server.eio)