我试图让这个例子(https://github.com/sontek/django-tictactoe/tree/master/small_tictactoe)运行gevent-socketio但是我得到了这个非常奇怪的错误:
Internal Server Error: /socket.io/1/websocket/49318546715
Traceback (most recent call last):
File "/Users/User/Envs/Echtzeit/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/User/Envs/Echtzeit/small_tictactoe/apps/core/views.py", line 37, in socketio
message = socketio.recv()
AttributeError: 'Socket' object has no attribute 'recv'
但我发现socketio.recv()
在其他例子中也用作文件......