{"id":24091629,"url":"https://github.com/RT-Thread-packages/nopoll","last_synced_at":"2025-09-17T01:31:33.520Z","repository":{"id":54365168,"uuid":"118207311","full_name":"RT-Thread-packages/nopoll","owner":"RT-Thread-packages","description":"ASPLes/nopoll - OpenSource WebSocket toolkit for RT-Thread","archived":false,"fork":false,"pushed_at":"2025-08-13T08:12:04.000Z","size":129,"stargazers_count":13,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-13T10:13:39.901Z","etag":null,"topics":["iot","nopoll","websocket"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RT-Thread-packages.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,"zenodo":null}},"created_at":"2018-01-20T04:03:43.000Z","updated_at":"2025-08-13T08:12:08.000Z","dependencies_parsed_at":"2025-08-13T10:07:57.378Z","dependency_job_id":"2c13a38e-8c64-4c5f-b821-416045dd38e2","html_url":"https://github.com/RT-Thread-packages/nopoll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RT-Thread-packages/nopoll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RT-Thread-packages%2Fnopoll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RT-Thread-packages%2Fnopoll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RT-Thread-packages%2Fnopoll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RT-Thread-packages%2Fnopoll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RT-Thread-packages","download_url":"https://codeload.github.com/RT-Thread-packages/nopoll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RT-Thread-packages%2Fnopoll/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275519645,"owners_count":25479425,"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-09-16T02:00:10.229Z","response_time":65,"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":["iot","nopoll","websocket"],"created_at":"2025-01-10T07:44:38.614Z","updated_at":"2025-09-17T01:31:33.051Z","avatar_url":"https://github.com/RT-Thread-packages.png","language":"C","funding_links":[],"categories":["Packages"],"sub_categories":["IoT"],"readme":"# noPoll  \n[noPoll](https://github.com/ASPLes/nopoll) is a OpenSource WebSocket implementation (RFC 6455) , written in ansi C , that allows building pure WebSocket solutions or to provide WebSocket support to existing TCP oriented applications.   \n\nHere is a simple implementation for RT-Thread based on [noPoll](https://github.com/ASPLes/nopoll) , temporarily only support non-encrypted operation.  \n\n# Quick Start  \nThere is a websocket client example at `examples/nopoll_client.c`.  \nTest server host : echo.websocket.org  \nTest server port : 80 \n\nRun the example at `MSH` as follows :\n```\nmsh /\u003enopoll_client\nweb socket connection ready!\nsending content..\nrecv: Hello RT-Thread!\nsendcnt = 1\n...\n...\n```\n\n# Notes  \n## 1 Not defined `strdup` function   \n\nIf your compiler is not offered `strdup` function , you can implement it yourself as shown below :   \n\n```\n/* _strdup.c  */   \n#include \u003crtthread.h\u003e\n\n#ifdef RT_USING_HEAP\nchar *strdup(const char *s)\n{\n\tsize_t len = strlen(s) + 1;\n\tchar *tmp = (char *)rt_malloc(len);\n\n\tif(!tmp) return NULL;\n\n\trt_memcpy(tmp, s, len);\n\treturn tmp;\n}\n#endif\n```\n## 2 `FD_SETSIZE` too small  \n\nPlease config the project as shown below :   \nThe `RT-Thread Component/Device virtual file system/The maximal number of opened files` value need to  greater or equal to `RT-Thread Component/Network stack/light weight TCP/IP stack/The number of raw connection` value.  \n\n\n# Reference  \n1 WebSocket Official website : http://websocket.org/  \n2 noPoll Official website : http://www.aspl.es/nopoll/  \n3 noPoll GitHub repository : https://github.com/ASPLes/nopoll  \n4 WebSocket test server : http://websocket.org/echo.html  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRT-Thread-packages%2Fnopoll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRT-Thread-packages%2Fnopoll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRT-Thread-packages%2Fnopoll/lists"}