{"id":13418445,"url":"https://github.com/eidheim/Simple-WebSocket-Server","last_synced_at":"2025-03-15T03:31:10.197Z","repository":{"id":19305431,"uuid":"22543096","full_name":"eidheim/Simple-WebSocket-Server","owner":"eidheim","description":"A very simple, fast, multithreaded, platform independent WebSocket (WS) and WebSocket Secure (WSS) server and client library implemented using C++11, Boost.Asio and OpenSSL. Created to be an easy way to make WebSocket endpoints in C++.","archived":true,"fork":false,"pushed_at":"2018-06-12T09:20:41.000Z","size":372,"stargazers_count":800,"open_issues_count":27,"forks_count":279,"subscribers_count":81,"default_branch":"master","last_synced_at":"2024-06-07T12:38:56.145Z","etag":null,"topics":["asio","client","cpp","library","server","websocket","websocket-secure","ws","wss"],"latest_commit_sha":null,"homepage":"","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/eidheim.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}},"created_at":"2014-08-02T09:22:38.000Z","updated_at":"2024-05-13T05:00:24.000Z","dependencies_parsed_at":"2022-08-03T15:10:14.728Z","dependency_job_id":null,"html_url":"https://github.com/eidheim/Simple-WebSocket-Server","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eidheim%2FSimple-WebSocket-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eidheim%2FSimple-WebSocket-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eidheim%2FSimple-WebSocket-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eidheim%2FSimple-WebSocket-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eidheim","download_url":"https://codeload.github.com/eidheim/Simple-WebSocket-Server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681024,"owners_count":20330152,"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":["asio","client","cpp","library","server","websocket","websocket-secure","ws","wss"],"created_at":"2024-07-30T22:01:02.413Z","updated_at":"2025-03-15T03:31:08.689Z","avatar_url":"https://github.com/eidheim.png","language":"C++","readme":"**_This project has moved to https://gitlab.com/eidheim/Simple-WebSocket-Server._**\n\nSimple-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 or 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. Follow, for instance, the instructions given here (for a self-signed certificate): http://www.akadia.com/services/ssh_test_certificate.html\n\nThen:\n```\n./build/wss_examples\n```\n","funding_links":[],"categories":["TODO scan for Android support in followings","C++","Tools per Language"],"sub_categories":["C++"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feidheim%2FSimple-WebSocket-Server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feidheim%2FSimple-WebSocket-Server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feidheim%2FSimple-WebSocket-Server/lists"}