{"id":16715192,"url":"https://github.com/theangrybyrd/hopac.websockets","last_synced_at":"2025-04-10T06:15:00.237Z","repository":{"id":143659832,"uuid":"124135946","full_name":"TheAngryByrd/Hopac.Websockets","owner":"TheAngryByrd","description":"Threadsafe Hopac wrapper around Websockets","archived":false,"fork":false,"pushed_at":"2018-08-07T14:48:25.000Z","size":2589,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T04:56:52.196Z","etag":null,"topics":["dotnet","dotnet-core","dotnetcore","fsharp","hopac","websockets"],"latest_commit_sha":null,"homepage":"","language":"F#","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/TheAngryByrd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-03-06T20:42:36.000Z","updated_at":"2023-10-08T22:20:34.000Z","dependencies_parsed_at":"2023-04-21T17:18:40.379Z","dependency_job_id":null,"html_url":"https://github.com/TheAngryByrd/Hopac.Websockets","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAngryByrd%2FHopac.Websockets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAngryByrd%2FHopac.Websockets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAngryByrd%2FHopac.Websockets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAngryByrd%2FHopac.Websockets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheAngryByrd","download_url":"https://codeload.github.com/TheAngryByrd/Hopac.Websockets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166859,"owners_count":21058481,"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":["dotnet","dotnet-core","dotnetcore","fsharp","hopac","websockets"],"created_at":"2024-10-12T21:08:37.910Z","updated_at":"2025-04-10T06:15:00.229Z","avatar_url":"https://github.com/TheAngryByrd.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hopac.Websockets\n\nA threadsafe [Hopac](https://github.com/Hopac/Hopac) wrapper around [dotnet websockets](https://docs.microsoft.com/en-us/dotnet/api/system.net.websockets.websocket?view=netcore-2.0).\n\n\n### Why? \n\nDotnet websockets only allow for one receive and one send at a time. If multiple threads try to write to a websocket, it will throw a `System.InvalidOperationException` with the message `There is already one outstanding 'SendAsync' call for this WebSocket instance. ReceiveAsync and SendAsync can be called simultaneously, but at most one outstanding operation for each of them is allowed at the same time.`. This wraps a websocket in a hopac server-client model that allows for multiple threads to write or read at the same time. See https://docs.microsoft.com/en-us/dotnet/api/system.net.websockets.websocket.sendasync?view=netcore-2.0#Remarks\n\n---\n\n## Builds\n\nMacOS/Linux | Windows\n--- | ---\n[![Travis Badge](https://travis-ci.org/TheAngryByrd/Hopac.Websockets.svg?branch=master)](https://travis-ci.org/TheAngryByrd/Hopac.Websockets) | [![Build status](https://ci.appveyor.com/api/projects/status/github/TheAngryByrd/Hopac.Websockets?svg=true)](https://ci.appveyor.com/project/TheAngryByrd/Hopac-Websockets)\n[![Build History](https://buildstats.info/travisci/chart/TheAngryByrd/Hopac.Websockets)](https://travis-ci.org/TheAngryByrd/Hopac.Websockets/builds) | [![Build History](https://buildstats.info/appveyor/chart/TheAngryByrd/Hopac-Websockets)](https://ci.appveyor.com/project/TheAngryByrd/Hopac-Websockets)  \n\n\n## Nuget \n\nPackage | Stable | Prerelease\n--- | --- | ---\nHopac.Websockets | [![NuGet Badge](https://buildstats.info/nuget/Hopac.Websockets)](https://www.nuget.org/packages/Hopac.Websockets/) | [![NuGet Badge](https://buildstats.info/nuget/Hopac.Websockets?includePreReleases=true)](https://www.nuget.org/packages/Hopac.Websockets/)\nHopac.Websockets.AspNetCore | [![NuGet Badge](https://buildstats.info/nuget/Hopac.Websockets.AspNetCore)](https://www.nuget.org/packages/Hopac.Websockets.AspNetCore/)  | [![NuGet Badge](https://buildstats.info/nuget/Hopac.Websockets.AspNetCore?includePreReleases=true)](https://www.nuget.org/packages/Hopac.Websockets.AspNetCore/)\n\n---\n\n### Building\n\n\nMake sure the following **requirements** are installed in your system:\n\n* [dotnet SDK](https://www.microsoft.com/net/download/core) 2.0 or higher\n* [Mono](http://www.mono-project.com/) if you're on Linux or macOS.\n\n```\n\u003e build.cmd // on windows\n$ ./build.sh  // on unix\n```\n\n\n### Watch Tests\n\nThe `WatchTests` target will use [dotnet-watch](https://github.com/aspnet/Docs/blob/master/aspnetcore/tutorials/dotnet-watch.md) to watch for changes in your lib or tests and re-run your tests on all `TargetFrameworks`\n\n```\n./build.sh WatchTests\n```\n\n### Releasing\n\n* [Add your nuget API key to paket](https://fsprojects.github.io/Paket/paket-config.html#Adding-a-NuGet-API-key)\n\n```\npaket config add-token \"https://www.nuget.org\" 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a\n```\n\n\n* Then update the `RELEASE_NOTES.md` with a new version, date, and release notes [ReleaseNotesHelper](https://fsharp.github.io/FAKE/apidocs/fake-releasenoteshelper.html)\n\n```\n#### 0.2.0 - 2017-04-20\n* FEATURE: Does cool stuff!\n* BUGFIX: Fixes that silly oversight\n```\n\n* You can then use the `Release` target.  This will:\n    * make a commit bumping the version:  `Bump version to 0.2.0` and add the release notes to the commit\n    * publish the package to nuget\n    * push a git tag\n\n```\n./build.sh Release\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheangrybyrd%2Fhopac.websockets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheangrybyrd%2Fhopac.websockets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheangrybyrd%2Fhopac.websockets/lists"}