{"id":21188496,"url":"https://github.com/drsensor/darkpools_publicapi_ws_time","last_synced_at":"2026-04-02T17:26:18.886Z","repository":{"id":71508964,"uuid":"218902141","full_name":"DrSensor/darkpools_publicapi_ws_time","owner":"DrSensor","description":"Bitwyre Dark Pools - Public Websocket API Time","archived":false,"fork":false,"pushed_at":"2019-11-01T02:59:38.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-03T01:05:19.307Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://api.bitwyre.com","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DrSensor.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":"2019-11-01T02:56:20.000Z","updated_at":"2020-05-05T01:43:19.000Z","dependencies_parsed_at":"2023-03-10T08:46:07.760Z","dependency_job_id":null,"html_url":"https://github.com/DrSensor/darkpools_publicapi_ws_time","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DrSensor/darkpools_publicapi_ws_time","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrSensor%2Fdarkpools_publicapi_ws_time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrSensor%2Fdarkpools_publicapi_ws_time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrSensor%2Fdarkpools_publicapi_ws_time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrSensor%2Fdarkpools_publicapi_ws_time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DrSensor","download_url":"https://codeload.github.com/DrSensor/darkpools_publicapi_ws_time/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrSensor%2Fdarkpools_publicapi_ws_time/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31311453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-11-20T18:45:20.716Z","updated_at":"2026-04-02T17:26:18.864Z","avatar_url":"https://github.com/DrSensor.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Websocket PublicAPI - Time\n\n[![Build Status](https://travis-ci.com/darkpools/darkpools_publicapi_ws_time.svg?branch=master)](https://travis-ci.com/darkpools/darkpools_publicapi_ws_time)\n\nCopyright (C) 2019 Bitwyre Technologies LLC\n\n## API Usages\n\nThis websocket service doesn't have TLS enabled nor cross-origin checking, it is suppose to be handled by an intermediary proxy.\n\nExample using [websocat](https://github.com/vi/websocat):\n\n```bash\nwebsocat ws://localhost:4000/ws/public/time\n```\n\nPeriodic message:\n\n```json\n{\"time\":{\"unixtime\":1571744594571020435,\"rfc3339\":\"2019-10-22T11:43:14.571020435+00:00\"}}\n{\"time\":{\"unixtime\":1571744595571648685,\"rfc3339\":\"2019-10-22T11:43:15.571648685+00:00\"}}\n{\"time\":{\"unixtime\":1571744596571345719,\"rfc3339\":\"2019-10-22T11:43:16.571345719+00:00\"}}\n{\"time\":{\"unixtime\":1571744597571387480,\"rfc3339\":\"2019-10-22T11:43:17.571387480+00:00\"}}\n```\n\nMessage anatomy:\n\n- Structure name will always be \"time\"\n- \"unixtime\" will be in nanoseconds\n- \"rfc3339\" is the time format (in strings) in RFC3339\n\n## Development\n\n### Pre-requisites\n\nRust-lang\n\n```bash\ncurl https://sh.rustup.rs -sSf | sh\n```\n\nDevelopment setup\n\n```bash\n./dev-setup.sh\n```\n\n### Configuration (via Environment)\n\n- Maximum client count for this service to handle, new client(s) beyond this limit will be rejected during handshake\n  - Environment Key is **MAX_CLIENT**\n  - Default value is **16384**\n- Interval in milliseconds for periodic server time broadcast\n  - Environment Key is **BLAST_INTERVAL_MS**\n  - Default value is **1000**\n- IP version 4 for this service to bind/listen to\n  - Environment Key is **SERVICE_IP**\n  - Default value is **0.0.0.0**\n- The TCP port for this service to bind/listen to\n  - Environment Key is **SERVICE_PORT**\n  - Default value is **4000**\n- Route path for the service\n  - Environment Key is **SERVICE_PATH**\n  - Default value is **/ws/public/time**\n- Fastest interval between 2 ping originating from client, the client will get disconnected if too fast\n  - Environment Key is **RAPID_REQUEST_LIMIT_MS**\n  - Default value is **1000**\n\n### Running with script\n\nApply recommended code formatting\n\n```text\n./run.sh formatter\n```\n\nTests\n\n```text\n./run.sh test\n```\n\nLints\n\n```text\n./run.sh lint\n```\n\nDependencies audit\n\n```text\n./run.sh audit\n```\n\nDevelopment run\n\n```text\n./run.sh\n```\n\n## Contributors\n\n- [Aditya Kresna](https://github.com/ujang360)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrsensor%2Fdarkpools_publicapi_ws_time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrsensor%2Fdarkpools_publicapi_ws_time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrsensor%2Fdarkpools_publicapi_ws_time/lists"}