{"id":23763734,"url":"https://github.com/tomashubelbauer/net-core-web-socket-server","last_synced_at":"2025-08-03T03:43:42.925Z","repository":{"id":107986168,"uuid":"186433981","full_name":"TomasHubelbauer/net-core-web-socket-server","owner":"TomasHubelbauer","description":"A demonstration of how to build a simple web socket server in .NET Core","archived":false,"fork":false,"pushed_at":"2022-04-14T20:34:21.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-03T03:43:42.446Z","etag":null,"topics":["net-core","web-sockets"],"latest_commit_sha":null,"homepage":"https://tomashubelbauer.github.io/net-core-web-socket-server","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TomasHubelbauer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2019-05-13T14:16:34.000Z","updated_at":"2022-04-28T09:07:29.000Z","dependencies_parsed_at":"2023-05-15T00:15:15.885Z","dependency_job_id":null,"html_url":"https://github.com/TomasHubelbauer/net-core-web-socket-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TomasHubelbauer/net-core-web-socket-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fnet-core-web-socket-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fnet-core-web-socket-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fnet-core-web-socket-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fnet-core-web-socket-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomasHubelbauer","download_url":"https://codeload.github.com/TomasHubelbauer/net-core-web-socket-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fnet-core-web-socket-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268491774,"owners_count":24258737,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["net-core","web-sockets"],"created_at":"2024-12-31T22:13:24.960Z","updated_at":"2025-08-03T03:43:42.913Z","avatar_url":"https://github.com/TomasHubelbauer.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .NET Core WebSocket Server\r\n\r\nThis repository demonstrates how to use the legacy `HttpListener` API to build a\r\nnaive WS server capable of accepting both text and binary connections from a JS\r\nclient running in a web browser.\r\n\r\nTo run the server, run `dotnet script main.csx`. You need `dotnet script` which\r\nyou can install by running `dotnet tool install -g dotnet-script`.\r\n\r\nTo run the client, open `index.html` and then use the developer tools to issue\r\na call of either `pingText` or `pingBinary` to see the echo.\r\n\r\nThis repository exists to demonstrate the WebSocket message preview capabilities\r\nof the Google Chrome developer tools. I am however unable to demonstrate viewing\r\nan outgoing binary frame, the content appears to be empty and the length is\r\nmistakenly shown to be zero bytes. Incoming binary message is previewed\r\ncorrectly.\r\n\r\nI posted [a Stack Overflow question](https://stackoverflow.com/q/56114835/2715716)\r\ninquiring about what could be the cause of the broken web socket frame display\r\nin Chrome developer tools.\r\n\r\nI made [a Chrome bug](https://crbug.com/962857) for this as well.\r\n\r\nThis turned out to be a Chrome bug as per the linked CRbug.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomashubelbauer%2Fnet-core-web-socket-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomashubelbauer%2Fnet-core-web-socket-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomashubelbauer%2Fnet-core-web-socket-server/lists"}