{"id":19232912,"url":"https://github.com/mikeduglas/websockets","last_synced_at":"2026-01-31T18:03:21.470Z","repository":{"id":94835970,"uuid":"110694103","full_name":"mikeduglas/WebSockets","owner":"mikeduglas","description":"Web Socket Server and Client implemented in C# and Clarion for the modern version 13 of the WebSocket protocol.","archived":false,"fork":false,"pushed_at":"2022-05-23T15:08:01.000Z","size":5310,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-13T05:47:58.514Z","etag":null,"topics":["clarion","websocket-protocol"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/mikeduglas.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}},"created_at":"2017-11-14T13:31:33.000Z","updated_at":"2024-10-09T17:10:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0e303f1-6fc4-4167-b859-5bad4cb5228b","html_url":"https://github.com/mikeduglas/WebSockets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mikeduglas/WebSockets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeduglas%2FWebSockets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeduglas%2FWebSockets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeduglas%2FWebSockets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeduglas%2FWebSockets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikeduglas","download_url":"https://codeload.github.com/mikeduglas/WebSockets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeduglas%2FWebSockets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28949274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["clarion","websocket-protocol"],"created_at":"2024-11-09T16:07:58.417Z","updated_at":"2026-01-31T18:03:21.458Z","avatar_url":"https://github.com/mikeduglas.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Sockets\r\nWeb Socket Server and Client implemented in C# and Clarion for the modern version 13 of the WebSocket protocol.\r\n\r\nBased on CodeProject's article [WebSocket Server in C#](https://www.codeproject.com/Articles/1063910/WebSocket-Server-in-Csharp).\r\n\r\n## WebSocket server\r\n- SSL support\r\n\r\n## WebSocket client\r\n- can be written in Clarion, JavaScript, and so on.\r\n- untrusted connections allowed\r\n\r\n### Real chat server and client (\"webchat\" folder).\r\n- Server: default port 88. To change this behaviour, edit ChatServer.INI.  \r\nCopy WebSockets.dll file from \\BIN into CharServer folder before running the server.\r\n- Client: if a server is running on same machine, client's app can connect to that server using \"localhost\": ws://localhost:88/chat. (In my home network I can use\r\nws://192.168.1.2:88/chat host address.)\r\nCopy WebSockets.dll, EasyHtml.dll files from \\BIN into CharClient folder before running the client.\r\n![ChatClient](WebChat.png?raw=true \"Chat client\")\r\n\r\n\r\n### How to test:\r\n- Start TestServer.exe. To enable SSL, set following INI settings:\r\nport=443  \r\ncertfile=mycert.pfx  \r\ncertpwd=mypassword  \r\n  \r\n\r\nfor web \"chat\" client:\r\n- Open http://localhost:88/client.html page (or https://localhost/wssclient.html if SSL enabled) in web browser, file TestServer\\web\\client.html will be loaded;\r\n- type something in entry field and press \"Send\". A text you typed in will be send to the server, server will send it back to the client in upper case;\r\nyou'll see the response in web browser.\r\n\r\nfor Clarion \"chat\" client:\r\n- run TestClientSrc.exe;\r\n- press \"Connect\" to connect to the server;\r\n- send some text, server will send it back to the client in upper case;\r\n- send a file, server will inform about file received.\r\n\r\nfor Clarion \"people\" client:\r\n- run people.exe (standard app from Clarion examples);\r\n- run another copy of people.exe from different folder (so that 2 exe copies will connect to 2 different databases PEOPLE.TPS);\r\n- open People browse in each running copies;\r\n- Make database changes in one of people app (insert, update or delete records). You will see a message in another running app, that there is pending changes,\r\nand you're able to synchronize 2 databases.\r\nUnder the hood: first \"people\" client sends db changes to the server, the server sends these changes to all other \"people\" clients.\r\n\r\n\r\n### Requirements\r\n- C6 and higher, ABC/Legacy\r\n- Microsoft .NET 4.0\r\n- EasyCOM2INC v2.14 classes and templates (free download from http://ingasoftplus.com)\r\n- Version 13 of the WebSocket protocol\r\n\r\n### Contacts\r\n- \u003cmikeduglas@yandex.ru\u003e\r\n- \u003cmikeduglas66@gmail.com\u003e\r\n\r\n[Buy now](https://www.clarionshop.com/checkout.cfm?pid=1673\u0026q=1\u0026)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeduglas%2Fwebsockets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikeduglas%2Fwebsockets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeduglas%2Fwebsockets/lists"}