canmove, Confirmed users, Bureaucrats and Sysops emeriti
3,628
edits
(→Text Messages: Fix missing data param definition) |
(→File Transfer: fix missing data param name) |
||
Line 206: | Line 206: | ||
This message can be sent either way. | This message can be sent either way. | ||
{topic: "message", {peer: <peer>, type: "file:new", message: {filename: <string>, size: <integer>, id: <integer>}} | {topic: "message", data: {peer: <peer>, type: "file:new", message: {filename: <string>, size: <integer>, id: <integer>}} | ||
* Peer is the peer the message is being sent to | * Peer is the peer the message is being sent to | ||
Line 215: | Line 215: | ||
===== Sending a file chunk ===== | ===== Sending a file chunk ===== | ||
{topic: "message", {peer: <peer>, type: "file:chunk", message: {id: <integer>, chunk: <chunk>}} | {topic: "message", data: {peer: <peer>, type: "file:chunk", message: {id: <integer>, chunk: <chunk>}} | ||
* Peer is the peer the message is being sent to | * Peer is the peer the message is being sent to |