[#2523] fixed realtime dart api preview example
This commit is contained in:
parent
1c63ae1324
commit
8921712821
|
@ -77,12 +77,12 @@
|
||||||
|
|
||||||
// Subscribe to changes in any ${collection?.name} record
|
// Subscribe to changes in any ${collection?.name} record
|
||||||
pb.collection('${collection?.name}').subscribe('*', (e) {
|
pb.collection('${collection?.name}').subscribe('*', (e) {
|
||||||
console.log(e.record);
|
print(e.record);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Subscribe to changes only in the specified record
|
// Subscribe to changes only in the specified record
|
||||||
pb.collection('${collection?.name}').subscribe('RECORD_ID', (e) {
|
pb.collection('${collection?.name}').subscribe('RECORD_ID', (e) {
|
||||||
console.log(e.record);
|
print(e.record);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Unsubscribe
|
// Unsubscribe
|
||||||
|
|
Loading…
Reference in New Issue