Skip to content

Commit

Permalink
remove outdated binary argument from example code
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed May 2, 2021
1 parent fb47df6 commit 090454f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/server/aiohttp/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def connect(sid, environ):
@eio.on('message')
async def message(sid, data):
print('message from', sid, data)
await eio.send(sid, 'Thank you for your message!', binary=False)
await eio.send(sid, 'Thank you for your message!')


@eio.on('disconnect')
Expand Down
2 changes: 1 addition & 1 deletion examples/server/asgi/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def connect(sid, environ):
@eio.on('message')
async def message(sid, data):
print('message from', sid, data)
await eio.send(sid, 'Thank you for your message!', binary=False)
await eio.send(sid, 'Thank you for your message!')


@eio.on('disconnect')
Expand Down
2 changes: 1 addition & 1 deletion examples/server/sanic/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def connect(sid, environ):
@eio.on('message')
async def message(sid, data):
print('message from', sid, data)
await eio.send(sid, 'Thank you for your message!', binary=False)
await eio.send(sid, 'Thank you for your message!')


@eio.on('disconnect')
Expand Down
2 changes: 1 addition & 1 deletion examples/server/tornado/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def connect(sid, environ):
@eio.on('message')
async def message(sid, data):
print('message from', sid, data)
await eio.send(sid, 'Thank you for your message!', binary=False)
await eio.send(sid, 'Thank you for your message!')


@eio.on('disconnect')
Expand Down
2 changes: 1 addition & 1 deletion examples/server/wsgi/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def connect(sid, environ):
@eio.on('message')
def message(sid, data):
print('message from', sid, data)
eio.send(sid, 'Thank you for your message!', binary=False)
eio.send(sid, 'Thank you for your message!')


@eio.on('disconnect')
Expand Down

0 comments on commit 090454f

Please sign in to comment.