This mailing list is for the development of Django itself, not for support.
Use the django-users mailing list for that, or IRC #django on freenode, or
a site like Stack Overflow.

On 4 April 2018 at 03:19, Mike Johnson Jr <[email protected]> wrote:

> *routing.py*
>
> *    from channels import include, route*
> *    from chat import consumers*
> *    from . import game_consumers*
>
> *    channel_routing = [*
> *     #game routing*
> *     route('websocket.connect', game_consumers.ws_connect_lobby,
> path=r"^/lobby/$"),*
> *        route('websocket.receive', game_consumers.ws_receive_lobby,
> path=r"^/lobby/$"),*
> *        route('websocket.disconnect', game_consumers.ws_disconnect_lobby,
> path=r"^/lobby/$"),*
>
> *app.js*
>
> *    Websocket = {*
> *        lobby_socket: null,*
> *        setup_ws_lobby : function(){*
> *     Websocket.lobby_socket = new
> ReconnectingWebSocket(Websocket.ws_scheme + '://' + window.location.host +
> '/lobby/');*
> *     Websocket.lobby_socket.onmessage = function(message) {*
> *         //nothing yet*
> *            };*
> *     },*
> *    }*
> *    Websocket.setup_ws_lobby();*
>
> *The url is `127.0.0.1:8000/game` <http://127.0.0.1:8000/game>.
> `Websocket.setup_ws_lobby()` is executed on page load. I don't see what I'm
> doing wrong. I get the error `Not Found: /lobby/` in my `python manage.py
> runserver` console when I load the page. My routes are clearly set and my
> js setup seems to route to those routes. Can anyone help? Thanks in
> advance.*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-developers/4c8048eb-3603-45fa-b518-
> 49658b8766cd%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/4c8048eb-3603-45fa-b518-49658b8766cd%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Adam

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM2BkAJdS9pqs3Qb_GpzUGRYSV6q0oxTTAqf43-Okn-YRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to