-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# server | ||
|
||
This module contains code for Quarkdown's local webserver, | ||
which enables automatic browser reload according to this flow: | ||
|
||
1. The server starts; | ||
2. When the address is opened in the browser, | ||
the injected [`websockets.js`](../core/src/main/resources/render/script/websockets.js) script | ||
begins listening to `/reload` for messages. | ||
3. The [CLI](../cli), upon generating output files, sends a message via websockets to `/reload`; | ||
4. The server forwards this message to the listening clients (browsers); | ||
5. Each client reloads its content as soon as it receives the message. |