{"id":21893688,"url":"https://github.com/asterics/asterics-networkio-websocket","last_synced_at":"2026-06-16T20:31:33.645Z","repository":{"id":144830362,"uuid":"117080630","full_name":"asterics/asterics-networkio-websocket","owner":"asterics","description":"This is an example of the AsTeRICS websocket functionality.","archived":false,"fork":false,"pushed_at":"2018-04-20T19:32:43.000Z","size":143,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-07-31T07:51:24.458Z","etag":null,"topics":["accessibility","ape","assistive-technology","demo","example","websocket"],"latest_commit_sha":null,"homepage":"http://asterics.github.io/AsTeRICS/demos.html#WebSocket","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asterics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2018-01-11T09:44:17.000Z","updated_at":"2018-04-20T19:32:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"66a3975f-3ccb-4f04-84e5-2a555aa29c8f","html_url":"https://github.com/asterics/asterics-networkio-websocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/asterics/asterics-networkio-websocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asterics%2Fasterics-networkio-websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asterics%2Fasterics-networkio-websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asterics%2Fasterics-networkio-websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asterics%2Fasterics-networkio-websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asterics","download_url":"https://codeload.github.com/asterics/asterics-networkio-websocket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asterics%2Fasterics-networkio-websocket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34423214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["accessibility","ape","assistive-technology","demo","example","websocket"],"created_at":"2024-11-28T13:16:10.015Z","updated_at":"2026-06-16T20:31:33.632Z","avatar_url":"https://github.com/asterics.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AsTeRICS Websocket Example\n\nThis folder contains an example of how to use the built-in ARE websocket. The demo generates a sine signal and broadcasts the signal data through a websocket (ws://localhost:8082/ws/astericsData). The data is visualized in a [webpage](http://asterics.github.io/AsTeRICS/demos.html#WebSocket) with a Javascript live chart. You can also send data to the model by pressing the \"Send test message\" button.\n\nThis folder contains an AsTeRICS based solution using the [APE (AsTeRICS Packaging Environment)](https://github.com/asterics/AsTeRICS/wiki/AsTeRICS-Packaging-Environment-(APE)) template folder structure.\n\n# Prerequisites\n\nYou need at least\n1. [Java Runtime Environment 8](http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html). **Some plugins only work with a 32-bit JRE.** You can have mixed installations of JREs/JDKs (32bit, 64bit). APE automatically prefers the 32-bit JDK/JRE on windows for the run targets. If you want to override this, set the property ```fx.platform.basedir``` in the file [APE.properties](APE.properties) to the path of your JDK/JRE.\nIf you want to create deployment files (.exe, .deb,...), you must have installed additional dependencies like a JDK.\n2. [apache ant build framework (version \u003e= 1.9.1)](http://ant.apache.org/bindownload.cgi) **or** an IDE for Java Developers, e.g. [Eclipse](http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/neon3) (already contains ant)\n2. [AsTeRICS 3.0](https://github.com/asterics/AsTeRICS/releases/tag/v3.0) installed **or** a snapshot of [AsTeRICS](https://github.com/asterics/AsTeRICS) cloned to a parallel folder of the project.\n\n# Demos / Examples\n\nYou can check the [demo](http://asterics.github.io/AsTeRICS/demos.html#WebSocket) and other [asterics solution example repositories](https://github.com/asterics?utf8=%E2%9C%93\u0026q=topic%3Aexample\u0026type=\u0026language=).\n# Run project\n\nEnter\n\n```ant run```\n\nto build all the dependencies and start the ARE.\n\nYou can also start the ARE using the ARE start-scripts in the ```build/merged/bin/ARE``` folder.\n\n# Release project\n\nTo create a native installer open a console and run\n\n```ant deploy```\n\nPlease also check additional [dependencies](https://github.com/asterics/AsTeRICS/tree/master/bin/APE#dependencies) and [usage examples](https://github.com/asterics/AsTeRICS/tree/master/bin/APE#example-usages-of-the-build-infrastructure). \n\n# Folder structure\nSubsequently you can see the simplified folder structure of an APE-based project, which contains an ant build file (**```build.xml```**), a property-based configuration file (**```APE.properties```**), the **```custom/bin/ARE```** folder to store the solution-specific files (e.g. model files), a **```build```** folder and a **```package```** folder for native installer customization. \n\n```\nbuild\n  |- merged\n  |- deploy\ncustom\n  |- bin/ARE\n    |- data\n    |- images\n    |- LICENSE\n    |- models\n      |- \u003ccustom model file\u003e.acs\n      |- ...\n    |-profile\n    |- web\n      |- webapps\n        |- startpage\n          |- start.html\n        |- \u003cyour webapps folder\u003e\n          |- index.html\npackage\n  |- linux\n  |- windows\n  |- macosx\nAPE.properties\nbuild.xml\n```\n\n# How to use the repository\n\nPut all your custom files (model files, images, config files,...) to the [custom/bin/ARE](custom/bin/ARE) folder. \n\nIn case you have a web UI put the files (.html, images, .css, .js,...) to the document root [(custom/bin/ARE/web)](custom/bin/ARE/web) of the built-in webserver. The webserver also provides a [websocket](https://github.com/asterics/AsTeRICS/wiki/AsTeRICS-Websocket). Finally the ARE provides a [REST API](https://github.com/asterics/AsTeRICS/wiki/AsTeRICS-REST-API) that can be used within a web application.\n\nBefore the project can be run it must be [built](#build-project) (builds the AsTeRICS repository and copies/merges needed plugin jars and project files to the ```build/merged/bin/ARE`` folder). You can also directly [run](#run-project) the ARE with the project's solution.\n\n# Recommended workflow\n\n1. Save custom files (models, images, config files,...) to the custom/bin/ARE folder or subfolders (e.g. web/...) or modify them\n2. Call ```ant APE-copy \u0026 ant run-quick```\n3. This should automatically open [http://localhost:8081](http://localhost:8081) in your standard browser.\n4. If you want to modify the running model, press 'F8' to open it in the WebACS, then modify and upload it. To save successful modifications permanently, save the model file to the ```custom/bin/ARE/models``` folder again.\n5. Kill program and go to step 1\n\n# Other ant targets\n\nTo see all supported targets, call\n\n```ant -projecthelp```\n\n# Changing AsTeRICS snapshot (ARE) used\n\nThe property ```ARE.baseURI``` defines the location of the ARE used for the execution of the project. \n\nAPE automatically searches for an ARE at the following locations:\n1. ```dependencies/AsTeRICS/bin/ARE``` (if Asterics is added as submodule)\n2. ```../AsTeRICS/bin/ARE``` (if it's an APE projectdir withouth FABI and FLipMouse folder structure)\n3. ```../../AsTeRICS/bin/ARE``` (if it's an AT solution folder structure)\n4. ```C:/Program Files (x86)/AsTeRICS/ARE/``` (if there is an Asterics installation on windows)\n\nYou can also set ARE.baseURI manually, either in the file ```APE.properties``` or within an ant call, e.g. \n\n```ant -DARE.baseURI=\u003cpath to ARE\u003e run```\n  \n```ant -DARE.baseURI=D:/AsTeRICS/AsTeRICS/bin/ARE/ run```\n \n# License\n\nDual license MIT or GPLv3 with CLASSPATH exception. Please read more in the [license section](https://github.com/asterics/AsTeRICS/wiki/Licensing) of the wiki.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasterics%2Fasterics-networkio-websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasterics%2Fasterics-networkio-websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasterics%2Fasterics-networkio-websocket/lists"}