Skip to content

samehdoush/flutterWebsocket

Repository files navigation

flutterWebsocket

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

api login

https://dart-pusher-channels.ps4tek.com/api/login method : post

email => String,

password => String,

device_name => String

flutter

   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',
                  },

Laravel Forge Site Deployment Status