Talkilla/SPA API: Difference between revisions

Jump to navigation Jump to search
Line 207: Line 207:
This message can be sent either way.
This message can be sent either way.


  {topic: "message", data: {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>, type:<string>}}


* Peer is the peer the message is being sent to
* Peer is the peer the message is being sent to
* filename is the filename string
* filename is the filename string
* size is the size of the file
* size is the size of the file
* type is the mime type of the file (if known).
* 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).


canmove, Confirmed users, Bureaucrats and Sysops emeriti
3,627

edits

Navigation menu