Skip to content

Commit 4ba5f15

Browse files
committed
Prometheus Metrics
1 parent ff4905b commit 4ba5f15

7 files changed

Lines changed: 15 additions & 59 deletions

File tree

.idea/.gitignore

Lines changed: 0 additions & 10 deletions
This file was deleted.

.idea/StatusPost.iml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

main.aro

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
(* StatusPost - Real-time message board with WebSocket updates *)
22

33
(Application-Start: StatusPost) {
4-
<Log> "Starting StatusPost..." to the <console>.
5-
<Start> the <http-server> with { websocket: "/ws" }.
6-
<Log> "StatusPost ready on http://localhost:8080" to the <console>.
7-
<Log> "WebSocket available on ws://localhost:8080/ws" to the <console>.
8-
<Keepalive> the <application> for the <events>.
9-
<Return> an <OK: status> for the <startup>.
4+
Log "Starting StatusPost..." to the <console>.
5+
Start the <http-server> with { websocket: "/ws" }.
6+
Log "StatusPost ready on http://localhost:8080" to the <console>.
7+
Log "WebSocket available on ws://localhost:8080/ws" to the <console>.
8+
Keepalive the <application> for the <events>.
9+
Return an <OK: status> for the <startup>.
1010
}
1111

1212
(Application-End: Success) {
13-
<Log> "StatusPost shutting down..." to the <console>.
14-
<Stop> the <http-server> with {}.
15-
<Return> an <OK: status> for the <shutdown>.
13+
Log "StatusPost shutting down..." to the <console>.
14+
Stop the <http-server> with {}.
15+
Return an <OK: status> for the <shutdown>.
1616
}

websocket.aro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
(* WebSocket Event Handlers *)
22

33
(Handle WebSocket Connect: WebSocket Event Handler) {
4-
<Extract> the <connection-id> from the <event: id>.
5-
<Log> "WebSocket client connected" to the <console>.
6-
<Return> an <OK: status> for the <connection>.
4+
Extract the <connection-id> from the <event: id>.
5+
Log "WebSocket client connected" to the <console>.
6+
Return an <OK: status> for the <connection>.
77
}
88

99
(Handle WebSocket Disconnect: WebSocket Event Handler) {
10-
<Extract> the <connection-id> from the <event: connectionId>.
11-
<Log> "WebSocket client disconnected" to the <console>.
12-
<Return> an <OK: status> for the <disconnection>.
10+
Extract the <connection-id> from the <event: connectionId>.
11+
Log "WebSocket client disconnected" to the <console>.
12+
Return an <OK: status> for the <disconnection>.
1313
}

0 commit comments

Comments
 (0)