Open arualana opened 3 years ago
This is the javascript example:
const pusher = new Pusher('<pusher api key>', { cluster: 'cluster', authEndpoint: 'https://test-api.com/test-endpoint', auth: { headers: { 'authorization': `Bearer ${token}` } } }); const channel = pusher.subscribe(`test_channel`); channel.bind('news', function(data) { console.log(data); });
How would I do this auth and binding and subscription with this library in flutter, please?
This is the javascript example:
How would I do this auth and binding and subscription with this library in flutter, please?