Skip to content

Commit fc62591

Browse files
committed
Fix bytesSent
1 parent d24be6a commit fc62591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/protocols/CapacitorSocket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ class CapacitorSocket extends EventTarget {
218218
}
219219

220220
return {
221-
bytesSent: bytes.byteLength,
221+
bytesSent: this.connected ? bytes.byteLength : 0,
222222
};
223223
}
224224

0 commit comments

Comments
 (0)