diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2024-01-27 02:24:50 +0000 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2024-01-27 02:24:50 +0000 |
commit | c34d1a0e9003d483752720466def696c30f705c8 (patch) | |
tree | b6e693c3b3d971a9d449daeb461b1a867177ad39 /examples/server_demo/src/demo.gleam | |
parent | 235fcd2ae0229272ebb0927806d301c8b887c1ba (diff) | |
download | lustre-c34d1a0e9003d483752720466def696c30f705c8.tar.gz lustre-c34d1a0e9003d483752720466def696c30f705c8.zip |
:construction: Start replacing old test examples with structured examples.
Diffstat (limited to 'examples/server_demo/src/demo.gleam')
-rw-r--r-- | examples/server_demo/src/demo.gleam | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/examples/server_demo/src/demo.gleam b/examples/server_demo/src/demo.gleam deleted file mode 100644 index ebe858a..0000000 --- a/examples/server_demo/src/demo.gleam +++ /dev/null @@ -1,22 +0,0 @@ -// IMPORTS --------------------------------------------------------------------- - -import demo/socket -import demo/web -import gleam/erlang/process -import mist - -// MAIN ------------------------------------------------------------------------ - -pub fn main() { - let assert Ok(_) = - mist.new(fn(req) { - case req.path { - "/ws" -> socket.handle(req) - _ -> web.handle(req) - } - }) - |> mist.port(8000) - |> mist.start_http - - process.sleep_forever() -} |