Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardalee committed Mar 3, 2024
1 parent c9eec99 commit 193ce82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions examples/C/src/browser-ui/Uptime.lf
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ main reactor {
timer seconds(0, 1 s)

w = new WebSocketServer(
hostport = 8080,
initial_file = {= LF_SOURCE_DIRECTORY LF_FILE_SEPARATOR "Uptime.html" =}
)
hostport=8080,
initial_file = {= LF_SOURCE_DIRECTORY LF_FILE_SEPARATOR "Uptime.html" =})

reaction(startup) {=
lf_print("Point your browser to http://localhost:8080");
Expand Down
7 changes: 3 additions & 4 deletions examples/C/src/browser-ui/WebSocket.lf
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ main reactor {
logical action send_action: web_socket_instance_t*

s = new WebSocketServer(
hostport = 8080,
max_clients=2, // Limit number of clients to 2.
initial_file = {= LF_SOURCE_DIRECTORY LF_FILE_SEPARATOR "WebSocket.html" =}
)
hostport=8080,
max_clients=2, // Limit number of clients to 2.
initial_file = {= LF_SOURCE_DIRECTORY LF_FILE_SEPARATOR "WebSocket.html" =})

reaction(startup) {=
lf_print("======== Starting server. Open WebSocket.html in your favorite browser.");
Expand Down

0 comments on commit 193ce82

Please sign in to comment.