{"id":25482856,"url":"https://github.com/jmuwrobotics/simple-websocket-server","last_synced_at":"2025-11-07T01:30:24.358Z","repository":{"id":277539574,"uuid":"932743746","full_name":"JMUWRobotics/Simple-WebSocket-Server","owner":"JMUWRobotics","description":"Fork of https://gitlab.com/eidheim/Simple-WebSocket-Server","archived":false,"fork":false,"pushed_at":"2025-02-14T13:12:05.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T13:42:37.027Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/JMUWRobotics.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,"publiccode":null,"codemeta":null}},"created_at":"2025-02-14T12:47:01.000Z","updated_at":"2025-02-14T13:12:08.000Z","dependencies_parsed_at":"2025-02-14T13:52:40.618Z","dependency_job_id":null,"html_url":"https://github.com/JMUWRobotics/Simple-WebSocket-Server","commit_stats":null,"previous_names":["jmuwrobotics/simple-websocket-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMUWRobotics%2FSimple-WebSocket-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMUWRobotics%2FSimple-WebSocket-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMUWRobotics%2FSimple-WebSocket-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMUWRobotics%2FSimple-WebSocket-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JMUWRobotics","download_url":"https://codeload.github.com/JMUWRobotics/Simple-WebSocket-Server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239513373,"owners_count":19651323,"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":"2025-02-18T17:01:17.462Z","updated_at":"2025-11-07T01:30:24.238Z","avatar_url":"https://github.com/JMUWRobotics.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple-WebSocket-Server\n=================\n\nA very simple, fast, multithreaded, platform independent WebSocket (WS) and WebSocket Secure (WSS) server and client library implemented using C++11, Asio (both Boost.Asio and standalone Asio can be used) and OpenSSL. Created to be an easy way to make WebSocket endpoints in C++.\n\nSee https://gitlab.com/eidheim/Simple-Web-Server for an easy way to make REST resources available from C++ applications. Also, feel free to check out the new C++ IDE supporting C++11/14/17: https://gitlab.com/cppit/jucipp. \n\n### Features\n\n* RFC 6455 mostly supported: text/binary frames, fragmented messages, ping-pong, connection close with status and reason.\n* Asynchronous message handling\n* Thread pool if needed\n* Platform independent\n* WebSocket Secure support\n* Timeouts, if any of SocketServer::timeout_request and SocketServer::timeout_idle are \u003e0 (default: SocketServer::timeout_request=5 seconds, and SocketServer::timeout_idle=0 seconds; no timeout on idle connections)\n* Simple way to add WebSocket endpoints using regex for path, and anonymous functions\n* An easy to use WebSocket and WebSocket Secure client library\n* C++ bindings to the following OpenSSL methods: Base64, MD5, SHA1, SHA256 and SHA512 (found in crypto.hpp)\n\n### Usage\n\nSee [ws_examples.cpp](ws_examples.cpp) or [wss_examples.cpp](wss_examples.cpp) for example usage. \n\n### Dependencies\n\n* Boost.Asio or standalone Asio\n* OpenSSL libraries\n\n### Compile\n\nCompile with a C++11 supported compiler:\n\n```sh\nmkdir build\ncd build\ncmake ..\nmake\ncd ..\n```\n\n#### Run server and client examples\n\n### WS\n\n```sh\n./build/ws_examples\n```\n\n### WSS\n\nBefore running the WSS-examples, an RSA private key (server.key) and an SSL certificate (server.crt) must be created.\n\nThen:\n```\n./build/wss_examples\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmuwrobotics%2Fsimple-websocket-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmuwrobotics%2Fsimple-websocket-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmuwrobotics%2Fsimple-websocket-server/lists"}