Can't connect from flutter app to remote meteor server

Viewed 79

I need to get data for flutter apps from a remote meteor server. Connecting locally to the local host and receiving data packets, and connecting to a remote server gives an error. I am consuming dart_meteor.

I/flutter (23037): MeteorClient[426707093] - Make a connection to wss://example.com/websocket
I/flutter (23037): WebSocketException: Connection to 'https://example.com:0/websocket#' was not upgraded to websocket

Code snippet for connection.

MeteorClient meteor = MeteorClient.connect(url: 'https://example.com');
void main() => runApp(MyApp());
0 Answers
Related