You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
problem
Livesync isn't reliable on Android API levels above 23.
solution
Implement all communication through named socket, so erroneous behavior is avoided.
details
expected behavior
Files that are pushed from the client to socket are created or deleted on the device, depending on the operation (create || delete)
Protocol:
(optional) as soon as server accepts a connection it sends the application name to the connected client. This is done so the client knows it can start sending data safely.
create: (operation)(fileNameLength)(fileName)(fileContentLength)(fileContent)
Example of message sent through socket: 800007./a.txt0000000011fileContent
delete: (operation)(fileNameLength)(fileName)
Example of message sent through socket: 700003./a
Create example explained:
Operation Name
Operation
File Name Length
File Name
File Content Length
File Content
create:
8
00007
./a.txt
0000000011
fileContent
delete:
7
00003
./a
The text was updated successfully, but these errors were encountered:
problem
Livesync isn't reliable on Android API levels above 23.
solution
Implement all communication through named socket, so erroneous behavior is avoided.
details
expected behavior
Files that are pushed from the client to socket are created or deleted on the device, depending on the operation (create || delete)
Protocol:
(optional) as soon as server accepts a connection it sends the application name to the connected client. This is done so the client knows it can start sending data safely.
create: (operation)(fileNameLength)(fileName)(fileContentLength)(fileContent)
Example of message sent through socket: 800007./a.txt0000000011fileContent
delete: (operation)(fileNameLength)(fileName)
Example of message sent through socket: 700003./a
Create example explained:
The text was updated successfully, but these errors were encountered: