{"id":27262114,"url":"https://github.com/alexanderbock/sgct-networked-application","last_synced_at":"2025-04-11T05:49:15.085Z","repository":{"id":87516202,"uuid":"234555387","full_name":"alexanderbock/SGCT-Networked-Application","owner":"alexanderbock","description":"A basic template to create an SGCT application that opens a WebSocket to listen to player input","archived":false,"fork":false,"pushed_at":"2024-03-28T03:09:48.000Z","size":60,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T05:49:11.928Z","etag":null,"topics":["cpp","sgct","websockets"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexanderbock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2020-01-17T13:36:57.000Z","updated_at":"2024-01-19T13:47:41.000Z","dependencies_parsed_at":"2024-02-27T20:31:32.214Z","dependency_job_id":"d8424ffd-8a27-4768-8d67-f9044c85c449","html_url":"https://github.com/alexanderbock/SGCT-Networked-Application","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderbock%2FSGCT-Networked-Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderbock%2FSGCT-Networked-Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderbock%2FSGCT-Networked-Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderbock%2FSGCT-Networked-Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexanderbock","download_url":"https://codeload.github.com/alexanderbock/SGCT-Networked-Application/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351435,"owners_count":21089271,"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":["cpp","sgct","websockets"],"created_at":"2025-04-11T05:49:14.531Z","updated_at":"2025-04-11T05:49:15.061Z","avatar_url":"https://github.com/alexanderbock.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SGCT-Networked-Application\nA basic template to create an SGCT application that opens a WebSocket to listen to input coming through a single connection.\n\nTo clone this repository, don't forget to recurse submodules: `git clone --recurse-submodules https://github.com/alexanderbock/SGCT-Networked-Application.git` or the dependent libraries will not work correctly.\n\n# Getting started\n1. Execute `npm install` in the `webserver` folder\n2. Compile the application\n3. Start the web server with `node server.js` in the `webserver` folder\n4. Start the application\n5. Connect from a second device\n\nIn the current version, it is necessary to start the server *before* starting the application, as the application will only try to connect once at startup.\n\n# Configurations\nCurrently, the server and application addresses are encoded in several places that all have to be changed:\n1. `webserver/server.js` has a `port` and `gameAddress` that have to point at the machine that is running the application.\n2. The application's `src/main.cpp` creates a `WebSocketHandler`, whose constructor requires the IP address and port of the webserver.\n3. The `webserver/public/script.js` sets a `serverAddress` variable that has to point to the game server location.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderbock%2Fsgct-networked-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexanderbock%2Fsgct-networked-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderbock%2Fsgct-networked-application/lists"}