You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After playing with this app, I've been having quite a bit of trouble just getting a simple connection going. I believe I followed all the instructions, but something still isn't right. Everything posted below is being run through the django-admin runserver command.
1.) The error I'm getting is in the browser is:
ws4redis.js:20 WebSocket connection to 'ws://localhost:8000/ws/foobar?subscribe-broadcast'
failed: Error during WebSocket handshake: Unexpected response code: 404
ws4redis.js:69 Websocket connection is broken! on_error @ ws4redis.js:69
Connection closed!
4.) I have no Python (server-side) code handing the websockets yet, but I was running the short snippet in the docs to broadcast a message thinking I may have to start a new facility from there or something.
Finally, I have some questions that the documentation didn't quite make clear to me:
Do I need to kickstart a websocket facility by calling it from Python land by publishing an initial message? ..or can any javascript client start a new facility by simply calling some url like ws://domain/<new-facility>?.... If the latter, does this open the door to a DOS attack on the Redis server by some rouge user making millions of facilities?
Is there additional logging I am missing somewhere to help debug whats going on the websocket loop? I was getting an exception that took me forever to find because I'm running Python3 and the current gevent lib doesn't support it yet (but their release candidate does). However, I didn't see that exception bubble up anywhere.
The text was updated successfully, but these errors were encountered:
Looking at the docs with rest and fresh eyes, it was easy to spot the error. I was missing all the required settings under the Note: Specify only the values, which deviate from the default thinking they were not required.
After playing with this app, I've been having quite a bit of trouble just getting a simple connection going. I believe I followed all the instructions, but something still isn't right. Everything posted below is being run through the
django-admin runserver
command.1.) The error I'm getting is in the browser is:
2.) And I see this in the runserver output:
3.) The javascript code I'm trying to use to connect is the following:
4.) I have no Python (server-side) code handing the websockets yet, but I was running the short snippet in the docs to broadcast a message thinking I may have to start a new facility from there or something.
Finally, I have some questions that the documentation didn't quite make clear to me:
ws://domain/<new-facility>?...
. If the latter, does this open the door to a DOS attack on the Redis server by some rouge user making millions of facilities?The text was updated successfully, but these errors were encountered: