Questions tagged [pusher-js]

The javascript client library of Pusher

The repository of pusher-js can be found here: https://github.com/pusher/pusher-js

201 questions
0
votes
1 answer

Is there anyway to create Laravel Websocket Server without 3rd party solution?

I am preparing to build a WebSockets system to have a bidirectional communication from my server to my clients through WebSockets. I know that Laravel now very well supports 3rd parties like Pusher Channels and Ably. There are also some other ways…
Ryo
  • 49
  • 1
  • 8
0
votes
0 answers

WebSocket is closed before the connection is established. - Laravel Pusher

I'm trying to use Laravel Pusher in my React Native project and by far it's working well. But the problem is with my live chat, it works but not live because I keep getting this error: WebSocket connection to…
0
votes
1 answer

Facing errors while working on backend side of whatsapp clone in MERN STACK

While working on backend of whatsapp clone i am facing these errors couldn't understand what type of errors are? This Project is made using React, Node, Express and Mongodb. I also use pusher. E:\Whatapp…
0
votes
1 answer

Pusher - autenticated users not receiving events from private channels

Let's say I have a vue client trying to receive an event from a private channel using pusher services. This client autenticates using pusher auth secuence: Here are the docs: https://pusher.com/docs/channels/server_api/authenticating-users/ Seems I…
Cesar Augusto
  • 268
  • 4
  • 16
0
votes
1 answer

How does one send blobs or arraybuffers through pusher?

The Pusher documentation states that it does not support binary websocket frames. Why is this the case and how would one send non-text data, e.g. blobs, through Pusher?
user17832896
  • 55
  • 1
  • 1
  • 5
0
votes
2 answers

How to use pusher.js in service worker

I want to use pusher.js in service worker for sending notification to user when the app(pwa) is closed. But I get below error in pusher.js: window is not defined
0
votes
1 answer

How to move Laravel Events into subdirectories and still have them work when broadcasting?

I've moved my Laravel Events into subdirectories, and now my broadcasted messages are not being received. Pusher shows them ok, and if I move them out of the subdirectories then they work as expected, so I believe this is a namespacing issue, but I…
Andrew Fox
  • 794
  • 4
  • 13
  • 30
0
votes
1 answer

Unable to retrieve auth string from auth endpoint - received status: 500

I using react native and backend is node.I trying implement pusher in my app. Object { "error": "Unable to retrieve auth string from auth endpoint - received status: 0 from http://10.0.27.124:8070/pusher/auth. Clients must be authenticated to join…
0
votes
1 answer

Pusher authEndpoint doesn't trigger in react native expo

Here is my code on the react native code : const pusher = new Pusher('app_key', { cluster: 'ap1', authEndpoint: 'http://10.0.27.124:8070/pusher/auth' }); const channel = pusher.subscribe('my-channel'); channel.bind('uuganaa', function…
0
votes
2 answers

why getting error 'Uncaught ReferenceError: Vue is not defined' in desktop notification using laravel vue?

I have followed the steps mentioned in this link for desktop notification in localhost https://pusher.com/tutorials/desktop-notifications-laravel/. and run the command in cli 'npm run dev'. after running the project using command 'php artisan…
0
votes
1 answer

Pusher: Callback function not executing with standalone Laravel (API) Vue.js(client) apps

Please I need help with pusher integration in my Laravel & Vue js project. NOT SPA (i.e separate Apps (Laravel - API & Vuejs- frontend) The goal is to establish a real-time chat between two users. The whole cycle is working perfectly well but the…
Folorunso
  • 135
  • 1
  • 1
  • 12
0
votes
1 answer

How to get real time notification with sound using laravel pusher?

I want to get real-time notifications with sound when an order is placed into my app. I'm using laravel 8 and pusher to that. I get real-time alerts but the sound does not work perfectly. When an order is placed first time sound does not play, after…
ihprince
  • 147
  • 1
  • 2
  • 17
0
votes
1 answer

Pusher HTTP Get user_count

What I am trying to do is the following Get a list of user_count for ALL PRESENCE channels. Using the following HTTP API call https://pusher.com/docs/channels/library_auth_reference/rest-api/#get-channels-fetch-info-for-multiple-channels I am not…
ArcticMediaRyan
  • 687
  • 8
  • 32
0
votes
1 answer

Install and Configure laravel-echo and pusher-js in VueJS

I'm using laravel-echo and pusher-js in a projetct with Laravel and VueJS and it works. But now I need to broadcast in a VueJS project without laravel (a pure VueJS project). I don't know how to install and configure laravel-echo and laravel-pusher…
Edinho Rodrigues
  • 354
  • 4
  • 24
0
votes
1 answer

How can i get the updated state value in useEffect

i set the users state with axios data but in useEffect hook whereevery i console.log(users) its show the default state that is [] array. please see the comment for better undarstand. let [users, setUsers] = useState([]); useEffect(() => { …
kundefine
  • 83
  • 10