Skip to main content

All Questions

0 votes
0 answers
28 views

how to Implement non-blocking, sequential AI moves in a multiplayer chess game in django channels?

I'm developing a website to play a special with kind of chess with React and Django. It pretty much requires two games to be played at the same time. The website allows to add AI players, so the ...
newbiedev3333's user avatar
1 vote
0 answers
245 views

cannot call recv while another coroutine is already waiting for the next message

RuntimeError: cannot call recv while another coroutine is already waiting for the next message hello I wrote a counsumer that acts as a middleware that connects to the server socket, for example X, ...
Vahid's user avatar
  • 9
0 votes
0 answers
122 views

Where is my blocking code? I do not receive WebSocket message - Django Channels

So I have setup a simple web app with Django Channels, that handles some WebSocket connections. It works almost perfect, however it does not receive messages, after I send messages initiated by ...
Ali Al-Alak's user avatar
8 votes
3 answers
7k views

Contacting another WebSocket server from inside Django Channels

I have two websocket servers, call them Main and Worker, and this is the desired workflow: Client sends message to Main Main sends message to Worker Worker responds to Main Main responds to Client ...
Amadan's user avatar
  • 196k
0 votes
1 answer
972 views

How to receive continuous stream of data

I have create a django-server(using django-channels) from which a continuous stream of data would be sent on the channel-layer where the client is connected on. The below code represent the client, in ...
Chinmay Dali's user avatar
1 vote
1 answer
2k views

AttributeError: module 'asyncio.coroutines' has no attribute '_is_coroutine'

I'm deploying a django app made with django channels using nginx, gunicorn and daphne. During deployment when I run python manage.py makemigrations, I get the following error. Could it be because the ...
user avatar
3 votes
2 answers
952 views

Django Channels middleware use ORM

I have troubles checking the user token inside of middleware. I'm getting token from cookies and then I need to query database to check if this token exists and belongs to user that made a request. ...
Nikita Tonkoskur's user avatar
1 vote
1 answer
651 views

Using a synchronous celery callback in an async django channels websocket

In our django-channels async consumer, i'm trying to retrieve a group result. This result may or may not be complete, and therefor i would like to add a callback to pipe results as they become ready. ...
hhoogg's user avatar
  • 41
1 vote
2 answers
3k views

Where does Django-Channels store user's channel names?

I am trying to add a user to a django channels group but I do not know the user's channel name. Only their database id/username. I have been reading through channels' documentation but was not able to ...
M. Farstad's user avatar
2 votes
1 answer
791 views

Django Channels websocket communication not truly asynchronous?

I wrote django channels code to send api data from two different sources asynchronously through websockets. The different sources takes few seconds to 1 minute to compute and send back the data. I ...
memnonila's user avatar
  • 359