shamblett / mqtt5_client

A server and browser based MQTT 5 client for dart
Other
50 stars 26 forks source link

Flutter Web Error :Error: Unsupported operation: default SecurityContext getter #14

Closed tongweizj closed 2 years ago

tongweizj commented 3 years ago

Hi,

I got a error in Flutter Web in mqtt5_client!

May I have a help to solve this issue?

截屏2021-09-14 下午10 37 40
shamblett commented 3 years ago

If you are using Flutter Web you should be using mqtt_browser_client, not the server client. Secure sockets are not supported in the browser, you only have ws or wss websockets. Please read the documentation.