2
0
mirror of https://github.com/esiur/esiur-js.git synced 2025-06-27 07:13:12 +00:00
This commit is contained in:
2022-09-16 14:03:13 +03:00
parent dad9461cd7
commit 8128a32c4d
7 changed files with 98 additions and 45 deletions

View File

@ -37,16 +37,7 @@ var server;
class MyChat extends IResource {
// void (string, string)->void
static get templateOld() {
return {
namespace: "Chat",
properties: [["title", String], ["messages", Array], ["users", Array]],
events: [["message", Map], ["voice", 0, {listenable: true }], ["login"], ["logout"]],
functions: [[ "send", [["msg", String, {optional: true}] ]]]
};
}
static get template() {
return new TemplateDescriber("Chat",[
new Prop("title", String), new Prop("messages", Array), new Prop("users", Array),