Skip to content

Commit 0238d1e

Browse files
authored
Merge pull request #266 from lohanidamodar/fix-realtime-last-url
fix realtime last url
2 parents f42e707 + c16fb9d commit 0238d1e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

templates/flutter/docs/example.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ FutureBuilder(
3333
builder: (context, snapshot) {
3434
return snapshot.hasData && snapshot.data != null
3535
? Image.memory(
36-
snapshot.data.data,
36+
snapshot.data,
3737
)
3838
: CircularProgressIndicator();
3939
},

templates/flutter/lib/src/realtime_mixin.dart.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ mixin RealtimeMixin {
2121
GetFallbackCookie? getFallbackCookie;
2222

2323
Future<dynamic> _closeConnection() async {
24-
return await _websok?.sink.close(normalClosure);
24+
await _websok?.sink.close(normalClosure);
25+
_lastUrl = null;
2526
}
2627

2728
_createSocket() async {

0 commit comments

Comments
 (0)