Skip to content

Commit

Permalink
Pass kwargs options to Werkzeug server
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Oct 18, 2015
1 parent d925450 commit be900a8
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions flask_socketio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,14 @@ def run(self, app, host=None, port=None, **kwargs):
Defaults to ``True`` in debug mode, ``False``
in normal mode. Unused wheb the threading async
mode is used.
:param kwargs: Additional Socket.IO and Engine.IO server options. See
the constructor of this class for the list of available
options. Note that the options provided here will not be
available when using an external web server, since this
method will not be called.
:param kwargs: Additional web server, Socket.IO, Engine.IO options.
The web server options are specific to the server used
in each of the supported async modes. See the
constructor of this class for the list of Socket.IO and
Engine.IO options. Note that options provided here will
not be available when using an external web server such
as gunicorn, since this method is not called in that
case.
"""
if host is None:
host = '127.0.0.1'
Expand All @@ -326,7 +329,7 @@ def run(self, app, host=None, port=None, **kwargs):

if self.server.eio.async_mode == 'threading':
app.run(host=host, port=port, threaded=True,
use_reloader=use_reloader)
use_reloader=use_reloader, **kwargs)
elif self.server.eio.async_mode == 'eventlet':
def run_server():
import eventlet
Expand Down

0 comments on commit be900a8

Please sign in to comment.