Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by python-socketio.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #configure #socketio #static #file #python #specific #content #type
ADD COMMENT
Topic
Name
1+8 =