canmove, Confirmed users, Bureaucrats and Sysops emeriti
3,627
edits
Line 203: | Line 203: | ||
''This part of the API only applies when the SPA advertises "spachannel" in its capabilities'' | ''This part of the API only applies when the SPA advertises "spachannel" in its capabilities'' | ||
===== | ===== Starting a new file ===== | ||
This message can be sent either way. | This message can be sent either way. | ||
Line 213: | Line 213: | ||
* id is the identifier for this specific file transfer (e.g. will be different for different transfers of the same filename). | * id is the identifier for this specific file transfer (e.g. will be different for different transfers of the same filename). | ||
===== | ===== Sending a file chunk ===== | ||
{topic: "message", {peer: <peer>, type: "file:chunk", message: {id: <integer>, chunk: <chunk>}} | {topic: "message", {peer: <peer>, type: "file:chunk", message: {id: <integer>, chunk: <chunk>}} |