{"id":16398855,"url":"https://github.com/sauldoescode/craftsocket","last_synced_at":"2026-06-22T14:31:28.382Z","repository":{"id":71027827,"uuid":"45347539","full_name":"SaulDoesCode/CraftSocket","owner":"SaulDoesCode","description":"small wrapper around JavaScript's WebSocket API  ","archived":false,"fork":false,"pushed_at":"2015-11-01T16:26:17.000Z","size":196,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T09:43:29.265Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/SaulDoesCode.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}},"created_at":"2015-11-01T16:16:13.000Z","updated_at":"2015-11-01T16:17:13.000Z","dependencies_parsed_at":"2023-03-11T09:42:46.188Z","dependency_job_id":null,"html_url":"https://github.com/SaulDoesCode/CraftSocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SaulDoesCode/CraftSocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaulDoesCode%2FCraftSocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaulDoesCode%2FCraftSocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaulDoesCode%2FCraftSocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaulDoesCode%2FCraftSocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaulDoesCode","download_url":"https://codeload.github.com/SaulDoesCode/CraftSocket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaulDoesCode%2FCraftSocket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34653712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"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":[],"created_at":"2024-10-11T05:14:05.317Z","updated_at":"2026-06-22T14:31:28.364Z","avatar_url":"https://github.com/SaulDoesCode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CraftSocket\nsmall wrapper around JavaScript's WebSocket API  \n\n### Using CraftSocket   \n \n##### Make a new CraftSocket Object    \n ``` javascript\n   var socket = new CraftSocket(\"ws://\" + location.hostname + \":\" + port + \"/\");\n   // The CraftSocket Object takes any ws:// or wss:// address \n ```   \n##### Send the Server a message   \n  ``` javascript\n   socket.send('Hello GoGo', res =\u003e console.log(res));\n   // First argument is the message you want to send   \n   // Second argument is a callback function with the server response as a parameter\n ```    \n \n##### Recieve a message from the Server     \n  ``` javascript  \n   socket.recieve(msg =\u003e console.log(msg));\n   // every time the server sends a message, \n   // the callback function will fire with the server's response as a parameter\n ```\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsauldoescode%2Fcraftsocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsauldoescode%2Fcraftsocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsauldoescode%2Fcraftsocket/lists"}