Skip to content

Commit

Permalink
Document how to use custom JSON encoder/decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Aug 30, 2015
1 parent a530ca4 commit 7cf23c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flask_socketio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ class SocketIO(object):
``bytes`` values are treated as binary. This option has no
effect on Python 3, where text and binary payloads are
always automatically discovered.
:param json: An alternative json module to use for encoding and decoding
packets. Custom json modules must have ``dumps`` and ``loads``
functions that are compatible with the standard library
versions.
The Engine.IO configuration supports the following settings:
Expand Down

0 comments on commit 7cf23c3

Please sign in to comment.