One qustion i do have is do I leave it as localhost ? or do i change that 
to a different IP address or www.openchat.us ? thanks

On Friday, May 19, 2017 at 11:53:37 AM UTC-5, djangorobert wrote:
>
> Hi hoping somebody in the entire Djang Users can help me solve this 
> problem its been going on for about a week now Im using the django channels 
> example on github the "Multichat" example I am using webfaction. 
>
> my website for this test is www.openchat.us but when you go to the site 
> it throws an error the error that i am getting is this: 
> WebSocket connection to 'ws://openchat.us:24711/' failed: WebSocket is 
> closed before the connection is established.
>
>
> settings.py 
>
> CHANNEL_LAYERS = {
>    "default": {
>         "BACKEND": "asgi_redis.RedisChannelLayer",
>         "CONFIG": {
>         },
>         "ROUTING": "myproject.routing.channel_routing",
>    },
> }
>
>
>
>
> redis_host = os.environ.get('REDIS_HOST', 'localhost')
>
>
> INSTALLED_APPS = [
>     'django.contrib.admin',
>     'django.contrib.auth',
>     'django.contrib.contenttypes',
>     'django.contrib.sessions',
>     'django.contrib.messages',
>     'django.contrib.staticfiles',
>     'myproject',
>     'channels',
>     'chat',
> ]
>
>
> command that im using to launch daphne is : daphne -p 24711 
> myproject.asgi:channel_layer
>
> $ daphne -p 27411 myproject.asgi:channel_layer
> 2017-05-19 16:52:40,360 INFO     Starting server at 
> tcp:port=27411:interface=127.0.0.1, channel layer 
> myproject.asgi:channel_layer.
> 2017-05-19 16:52:40,360 INFO     HTTP/2 support enabled
> 2017-05-19 16:52:40,360 INFO     Using busy-loop synchronous mode on 
> channel layer
> 2017-05-19 16:52:40,361 INFO     Listening on endpoint 
> tcp:port=27411:interface=127.0.0.1
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6abd0b3f-f1c8-4661-804b-b69c6598bc35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to