nahid / talk-example

This project is demo for Laravel-Talk package and its also Docker ready
http://github.com/nahid/talk
131 stars 77 forks source link

I have to refresh the page for the new message #19

Closed baig772 closed 6 years ago

baig772 commented 7 years ago

Every time I hit send, I have to refresh the page for the receiver end to get the new message. Followed the steps exactly. Don't see any output after php artisan:queue listen

nahid commented 7 years ago

Update talk with version v2.2.1 and replace config file with this code

<?php
return [
    'user' => [
        'model' => 'App\User',
    ],
    'broadcast' => [
        'enable' => false,
        'app_name' => 'your-app-name',
        'pusher' => [
            'app_id' => '',
            'app_key' => '',
            'app_secret' => '',
            'options' => [
                'cluster' => 'ap1',
                'encrypted' => true
            ]
        ],
    ],
];
baig772 commented 7 years ago

I still have to refresh the page to see the new messages. I am trying it on my local system and signed in form 2 different users on 2 different browsers. Will it work on local?

nahid commented 7 years ago

please share config/talk.php file

baig772 commented 7 years ago

Below is my talk.php

<?php
return [
    'user' => [
        'model' => 'App\User',
    ],
    'broadcast' => [
        'enable' => true,
        'app_name' => 'heroic-salute-582',
        'pusher' => [
            'app_id' => env('PUSHER_APP_ID'),
            'app_key' => env('PUSHER_KEY'),
            'app_secret' => env('PUSHER_SECRET'),
            'options' => [
                'cluster' => 'ap1',
                'encrypted' => true
            ]
        ],
    ],
];
nahid commented 7 years ago

Is your cluster is correct?

baig772 commented 7 years ago

@nahid changed the cluster to correct one i.e eu but still same

baig772 commented 7 years ago

Is there any update on this?

Ravenna commented 6 years ago

I also have this issue. I have updated to talk 2.2.1 and I have the correct cluster set.

nahid commented 6 years ago

Talk-Example is now Docker ready. All dependancies are now bring with docker. Just run this command and update your credentials and enjoy ...

./talk ready