Answers for "configure socketio static file python specific content type"

0

configure socketio static file python specific content type

# for standard WSGI applications
sio = socketio.Server()
app = socketio.WSGIApp(sio, static_files=static_files)

# for asyncio-based ASGI applications
sio = socketio.AsyncServer()
app = socketio.ASGIApp(sio, static_files=static_files)
Posted by: Guest on April-25-2022
0

configure socketio static file python specific content type

static_files = {
    '/': {'filename': 'latency.html', 'content_type': 'text/plain'},
}
Posted by: Guest on April-25-2022

Python Answers by Framework

Browse Popular Code Answers by Language