{"id":15645075,"url":"https://github.com/jaredly/reason-websocket","last_synced_at":"2025-10-15T20:30:10.691Z","repository":{"id":66952849,"uuid":"139288916","full_name":"jaredly/reason-websocket","owner":"jaredly","description":"A websocket library for reason native","archived":false,"fork":false,"pushed_at":"2018-07-06T04:48:53.000Z","size":312,"stargazers_count":57,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-09T21:11:34.564Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","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/jaredly.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":"2018-07-01T00:12:51.000Z","updated_at":"2021-08-02T13:09:10.000Z","dependencies_parsed_at":"2023-05-15T18:45:36.465Z","dependency_job_id":null,"html_url":"https://github.com/jaredly/reason-websocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Freason-websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Freason-websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Freason-websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Freason-websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredly","download_url":"https://codeload.github.com/jaredly/reason-websocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234545181,"owners_count":18850165,"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":[],"created_at":"2024-10-03T12:04:22.668Z","updated_at":"2025-10-15T20:30:05.630Z","avatar_url":"https://github.com/jaredly.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reason Websocket\nA fork of Based on https://github.com/vbmithr/ocaml-websocket\n\nA library for native websocket server development.\n\nHere's what it looks like to run a websocket server:\n\n```re\nServer.run(\n  ~port=9876,\n  ~onMessage=(text, reply) =\u003e {\n    reply(\"Thanks for the \" ++ text)\n  },\n  ~httpFallback=(method, path, headers, msg, respond) =\u003e {\n    respond(\n          \"HTTP/1.1 200 OK\\r\\nContent-Length: 5\\r\\nContent-Type: text/plain\\r\\n\\r\\nHello\",\n    )\n  },\n  ~config=(module Server.UnixConfig: Server.Config)\n)\n```\n\n```\n# in this directory\nnpm install\nnpm run build\n./lib/bs/native/serverexample.native\n```\n\nThen open `http://localhost:9876`\n\n![screenshot](screenshot.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredly%2Freason-websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredly%2Freason-websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredly%2Freason-websocket/lists"}