Talkilla/SPA API: Difference between revisions

Line 187: Line 187:
This message can be sent either way.
This message can be sent either way.


  {topic: "message", {peer: <peer>, type: "chat:message", message: {username: <peer>, message: <string>, date: <date>}}
  {topic: "message", {peer: <peer>, type: "chat:message", message: {message: <string>}}


* Peer is the peer the message is being sent to
* Peer is the peer the message is being sent to
Line 194: Line 194:
===== Typing notifications =====
===== Typing notifications =====


  {topic: "message", {peer: <peer>, type: "chat:typing", message: {username: <peer>}}
  {topic: "message", {peer: <peer>, type: "chat:typing"}


* Peer is the peer the message is being sent to
* Peer is the peer the message is being sent to
canmove, Confirmed users, Bureaucrats and Sysops emeriti
3,627

edits