django - AttributeError: 'Socket' object has no attribute 'recv' -


i'm trying example(https://github.com/sontek/django-tictactoe/tree/master/small_tictactoe) gevent-socketio running, but strange error:

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' 

but found socketio.recv() used in other examples documentations well...

this example 2 year old. since api changed.as can see there no recv method exist. can check method exists here :


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -