{"id":20303941,"url":"https://github.com/billstclair/elm-chat-server","last_synced_at":"2025-03-04T07:13:01.744Z","repository":{"id":66592570,"uuid":"137547290","full_name":"billstclair/elm-chat-server","owner":"billstclair","description":"An example of using elm-websocket-framework","archived":false,"fork":false,"pushed_at":"2018-08-02T02:12:00.000Z","size":218,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T19:43:05.082Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://xossbow.com/chat","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/billstclair.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-16T02:26:06.000Z","updated_at":"2018-09-14T06:57:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8b75e98-4bc7-4560-b287-55e61c56c289","html_url":"https://github.com/billstclair/elm-chat-server","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Felm-chat-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Felm-chat-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Felm-chat-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Felm-chat-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/billstclair","download_url":"https://codeload.github.com/billstclair/elm-chat-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241801259,"owners_count":20022390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T16:41:51.325Z","updated_at":"2025-03-04T07:13:01.720Z","avatar_url":"https://github.com/billstclair.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elm-chat-server\n\nAn example of using [elm-websocket-framework](http://package.elm-lang.org/packages/billstclair/elm-websocket-framework/latest) and [elm-websocket-framework-server](http://package.elm-lang.org/packages/billstclair/elm-websocket-framework-server/latest).\n\nThe client is implemented by [src/ReactorChat.elm](src/ReactorChat.elm) for `elm reactor` or [src/PortChat.elm](src/PortChat.elm) for the shipped application with persistence. You can run it in `elm-reactor` by clicking the `ReactorChat` link.\n\nTo start `elm-reactor`:\n\n    cd .../elm-chat-server\n    elm reactor\n    \nThen aim your web browser at [localhost:8000](http://localhost:8000).\n\nThere are some scripts in the [bin](bin/) directory:\n\n1. \"`m \u003cclass\u003e`\" compiles `src/\u003cclass\u003e.elm`, throwing away output.\n\n2. \"`build-site`\" compiles `src/ChatClient.elm` into `site/index.html`.\n\n3. \"`update-site`\" runs `build-site`, then uses my [`rsyncit`](https://github.com/billstclair/wws-scripts#rsyncit) script to upload the `site` directory to the server specified by [`site/.sshdir`](site/.sshdir).\n\nThe client will attempt to load the file `server.txt` from its top-level directory. If it finds it, it will replace the \"Server\" field with the string found there. It should be a WebSocket URL, e.g. \"`ws://localhost:8081`\" or \"`wss://xossbow.com/chat`\". The default value for the \"Server\" is \"`ws://localhost:8081`\", a local server running on the default port.\n\nSee the [`server`](server/) directory's README for instructions on installing, building, and running the server.\n\nThere are tests for message encoding and decoding. See the README in the [`tests`](tests/) directory for instructions for running them.\n\nThere's a live client, pointing at a live server, at [xossbow.com/chat](https://xossbow.com/chat/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillstclair%2Felm-chat-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbillstclair%2Felm-chat-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillstclair%2Felm-chat-server/lists"}