{"id":17948623,"url":"https://github.com/dynstat/Minimal-websockets-library-in-C","last_synced_at":"2025-10-24T02:30:45.793Z","repository":{"id":259254172,"uuid":"877075186","full_name":"dynstat/Minimal-websockets-in-C","owner":"dynstat","description":"WebSocket client library in C for Windows using Winsock2 with simple TCP socket-style like interface without event loop dependencies.","archived":false,"fork":false,"pushed_at":"2024-10-26T15:39:55.000Z","size":260,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T04:17:09.102Z","etag":null,"topics":["c","socket","tcp","websockets"],"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/dynstat.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":"2024-10-23T03:30:43.000Z","updated_at":"2024-10-26T15:39:59.000Z","dependencies_parsed_at":"2024-12-16T17:45:32.556Z","dependency_job_id":"c0c3b4cd-15a3-4839-9dc2-6a78f8922ba6","html_url":"https://github.com/dynstat/Minimal-websockets-in-C","commit_stats":null,"previous_names":["dynstat/minimal-websockets-in-c"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynstat%2FMinimal-websockets-in-C","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynstat%2FMinimal-websockets-in-C/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynstat%2FMinimal-websockets-in-C/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynstat%2FMinimal-websockets-in-C/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dynstat","download_url":"https://codeload.github.com/dynstat/Minimal-websockets-in-C/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237901433,"owners_count":19384391,"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":["c","socket","tcp","websockets"],"created_at":"2024-10-29T09:07:50.104Z","updated_at":"2025-10-24T02:30:45.787Z","avatar_url":"https://github.com/dynstat.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebSocket Library in C\n\nA simple WebSocket client library implemented in C for Windows using Winsock2. This library allows you to establish WebSocket connections, send and receive messages, and handle connection states.\n\n## Features\n\n- **WebSocket Handshake**: Establishes a WebSocket connection with the server.\n- **Message Sending**: Supports sending text and binary messages.\n- **Message Receiving**: Handles incoming messages from the server.\n- **Connection Management**: Manages connection states and gracefully closes connections.\n\n## Project Structure\n\nThis project is a Visual Studio solution containing two projects:\n\n1. **mws_lib**: A static library project for the WebSocket implementation (Main Project).\n2. **test-mws**: A test project to demonstrate the usage of the WebSocket library.\n\n### Key Files\n\n- `mws_lib.c` and `mws_lib.h`: Implementation and header files for the WebSocket library.\n- `test-mws/test-mws.c`: Example program demonstrating how to use the WebSocket library.\n- `mws_lib.sln`: Visual Studio solution file.\n\n## Build Instructions\n\n### Prerequisites\n\n- **Windows OS**: The library is designed for Windows platforms.\n- **Visual Studio**: This project uses Visual Studio for building. Ensure you have a recent version installed.\n\n### Steps\n\n1. **Open the Solution**\n   - Open `mws_lib.sln` in Visual Studio.\n\n2. **Build the Library**\n   - Right-click on the `mws_lib` project in the Solution Explorer.\n   - Select \"Build\" to compile the static library.\n\n3. **Build the Test Program**\n   - Right-click on the `test-mws` project in the Solution Explorer.\n   - Select \"Build\" to compile the test program.\n\n4. **Run the Test Program**\n   - Right-click on the `test-mws` project.\n   - Select \"Set as Startup Project\".\n   - Press F5 or click \"Start Debugging\" to run the program.\n\n## Usage\n\nRefer to `test-mws/test-mws.c` for a comprehensive example of how to initialize the library, establish a connection, send and receive messages, and clean up resources.\n\n## Additional Files\n\n- `server-2.py`: A Python script, likely for testing purposes (server implementation).\n\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynstat%2FMinimal-websockets-library-in-C","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdynstat%2FMinimal-websockets-library-in-C","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynstat%2FMinimal-websockets-library-in-C/lists"}