demo project server-side for dart_pusher_channels https://github.com/kerimamansaryyev/dart_pusher_channels
url demo : https://dart-pusher-channels.ps4tek.com/dashboard Create a new user so as not to conflict with other users
https://dart-pusher-channels.ps4tek.com/api/login method : post
email => String,
password => String,
device_name => String
const hostOptions = .fromHost(
scheme: 'wss',
host: 'socketdemo.ps4tek.com',
key: '30fad4c0b0b50a1a41ca',
port: 443,
);
/*...etc...*/
authorizationEndpoint:
Uri.parse('https://dart-pusher-channels.ps4tek.com/api/broadcasting/auth'),
headers: {
'Authorization': 'Bearer ${Token ?? ''}', // token from api
'Accept': 'application/json',
"Content-Type": 'application/json',
},