fix: websocket support custom port (#5123)

Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
Korov 2024-04-26 20:09:55 +08:00 committed by GitHub
parent 122a392bf8
commit 1ad351195d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -319,7 +319,8 @@ Future<String> _getAppFlowyCloudWSUrl(String baseURL) async {
// Construct the WebSocket URL directly from the parsed URI.
final wsScheme = uri.isScheme('HTTPS') ? 'wss' : 'ws';
final wsUrl = Uri(scheme: wsScheme, host: uri.host, path: '/ws/v1');
final wsUrl =
Uri(scheme: wsScheme, host: uri.host, port: uri.port, path: '/ws/v1');
return wsUrl.toString();
} catch (e) {