Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/frontend/chat/README.md
Views: 687
Chat
WARNING: like all development docs, don't trust anything technical in this file; instead, only trust the code itself! Nobody ever looks at docs like this, except people very new to the codebase, hence they tend to just maximize confusion.
Timestamps
Note: There are a couple of ways to represent a time in Javascript:
iso string
ms since epoch as a number
string version of ms since epoch
Date object
The data structures for chat have somehow evolved since that crazy Sage Days by the Ocean in WA to use all of these at once, which is confusing and annoying. Be careful!
Overview
CoCalc has two chat views.
Side chat associated with files
Primary chat rooms (also a file)
The constricting factors are primarily keyboard related or screen size related. ie., you cannot use certain hotkeys without a physical keyboard and certain things don't fit well on a smaller screen.
JSON message format
"FUTURE" Will likely contain their last edit in the future
--- History object ---
Example object:
Chat message types after immutable conversion: (immutable.Map)