mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: websocket support custom port (#5123)
Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
parent
122a392bf8
commit
1ad351195d
@ -319,7 +319,8 @@ Future<String> _getAppFlowyCloudWSUrl(String baseURL) async {
|
|||||||
|
|
||||||
// Construct the WebSocket URL directly from the parsed URI.
|
// Construct the WebSocket URL directly from the parsed URI.
|
||||||
final wsScheme = uri.isScheme('HTTPS') ? 'wss' : 'ws';
|
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();
|
return wsUrl.toString();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user