{"id":23462538,"url":"https://github.com/danielrs/node-chatty","last_synced_at":"2025-04-12T06:59:49.961Z","repository":{"id":69589734,"uuid":"37865496","full_name":"danielrs/node-chatty","owner":"danielrs","description":"A simple node module for chatting through IPv6 (Educational purposes)","archived":false,"fork":false,"pushed_at":"2016-02-11T19:47:45.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T06:59:46.090Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielrs.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}},"created_at":"2015-06-22T16:04:57.000Z","updated_at":"2016-02-11T18:36:53.000Z","dependencies_parsed_at":"2023-05-11T18:00:46.943Z","dependency_job_id":null,"html_url":"https://github.com/danielrs/node-chatty","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/danielrs%2Fnode-chatty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrs%2Fnode-chatty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrs%2Fnode-chatty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrs%2Fnode-chatty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielrs","download_url":"https://codeload.github.com/danielrs/node-chatty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530565,"owners_count":21119595,"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-12-24T08:17:41.194Z","updated_at":"2025-04-12T06:59:49.938Z","avatar_url":"https://github.com/danielrs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## How to initialize a server and a client?\n\nYou can try this on node's REPL:\n\n```javascript\nchat = require('./lib/Chat.js');\n```\n\nAnd depending on the machine you are using:\n\n#### Server\n```javascript\n...\nserver = new chat.Server();\n...\n```\n#### Client\n```javascript\n...\nclient = new chat.Client();\nclient.findServer();\nclient.connect();\n...\n```\n\n**NOTE**: You cannot run a server *and* a client on the same machine.\n\n## How to send messages?\n\nOn the client you can use the following functions:\n\n| Function | Description |\n| --- | --- |\n| `sendMessage(uuid, message)` | Send a message to client with the specified uuid |\n| `sendGroupMessage(uuid, message)` | Send a message to the specified group |\n| `getMessages()` | Gets all received messages |\n| `createGroup(name)` | Creates a group with given name |\n| `joinGroup(uuid)` | Tries to join the group with the given uuid |\n| `leaveGroup(uuid)` | Leaves group with given uuid |\n| `getGroups()` | Get a list of available groups |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielrs%2Fnode-chatty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielrs%2Fnode-chatty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielrs%2Fnode-chatty/lists"}