Skip to content

Latest commit

 

History

History
106 lines (78 loc) · 997 Bytes

msgFromClient.md

File metadata and controls

106 lines (78 loc) · 997 Bytes

Message from Client

init:

{
  "a": "meta", 
  "type": "init",
  "userId": "tc",
  "name": "tn"
  "portalId": "tp",
  "initNewPortal": true
}

open file:

{
  "a": "meta", 
  "type": "openFile",
  "grammar": "javascript",
  "path": "tpa"
}

close file:

{
  "a": "meta", 
  "type": "closeFile",
  "path": "tpa"
}

move cursor:

{
  "a": "meta", 
  "type": "moveCursor",
  "path": "tpa",
  "newPosition":
  {
    "row":1, 
    "column":2
  }
}

change to active:

{
  "a": "meta", 
  "type": "changeActiveStatus",
  "path": "tpa",
  "isActiveUser": true
}

change grammar:

{
  "a": "meta",
  "type": "changeGrammar",
  "path": "tpa",
  "userId": "tc",
  "grammar": "java"
}

save file:

{
  "a": "meta",
  "type": "saveFile",
  "path": "tpa"
}

create file:

{
  "a": "meta",
  "type": "createFile",
  "path": "tpa",
  "isFolder": true
}