{"id":19714917,"url":"https://github.com/youngmonkeys/ezyfox-server-es6-client","last_synced_at":"2025-04-29T19:33:17.074Z","repository":{"id":47610908,"uuid":"147468848","full_name":"youngmonkeys/ezyfox-server-es6-client","owner":"youngmonkeys","description":"ezyfox-server-es6-client","archived":false,"fork":false,"pushed_at":"2024-07-13T09:47:59.000Z","size":92,"stargazers_count":10,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T06:19:04.091Z","etag":null,"topics":["es6","javascript-client","websocket"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/youngmonkeys.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":"2018-09-05T06:14:27.000Z","updated_at":"2025-03-10T01:48:06.000Z","dependencies_parsed_at":"2024-07-13T10:58:52.284Z","dependency_job_id":null,"html_url":"https://github.com/youngmonkeys/ezyfox-server-es6-client","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngmonkeys%2Fezyfox-server-es6-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngmonkeys%2Fezyfox-server-es6-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngmonkeys%2Fezyfox-server-es6-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngmonkeys%2Fezyfox-server-es6-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youngmonkeys","download_url":"https://codeload.github.com/youngmonkeys/ezyfox-server-es6-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251569702,"owners_count":21610604,"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":["es6","javascript-client","websocket"],"created_at":"2024-11-11T22:36:34.651Z","updated_at":"2025-04-29T19:33:16.538Z","avatar_url":"https://github.com/youngmonkeys.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ezyfox-server-es6-client \u003cimg src=\"https://github.com/youngmonkeys/ezyfox-server/blob/master/logo.png\" width=\"64\" /\u003e\njavascript emacs 6 client for ezyfox server\n\n# Synopsis\n\njavascript emacs 6 client for ezyfox server\n\n# Documentation\n\n[https://youngmonkeys.org/ezyfox-es6-client-sdk/](https://youngmonkeys.org/ezyfox-es6-client-sdk/)\n\n# Installation\n\n```\nnpm i ezyfox-es6-client\n```\n\n# Code Example\n\nYou can find the full example [here](https://github.com/youngmonkeys/freechat/tree/master/reactjs/src/socket)\n\n**1. Create ws client**\n```javascript\nvar config = new Ezy.ClientConfig;\nconfig.zoneName = \"zoneName\";\nvar clients = Ezy.Clients.getInstance();\nvar client = clients.newDefaultClient(config);\n```\n\n**2. Setup ws client**\n\n```javascript\nvar setup = client.setup;\nsetup.addEventHandler(Ezy.EventType.DISCONNECTION, disconnectionHandler);\nsetup.addDataHandler(Ezy.Command.HANDSHAKE, handshakeHandler);\nsetup.addDataHandler(Ezy.Command.LOGIN, userLoginHandler);\nsetup.addDataHandler(Ezy.Command.APP_ACCESS, accessAppHandler);\nvar setupApp = setup.setupApp(\"appName\");\nsetupApp.addDataHandler(\"command\", function(app, data) {\n    controller.contactController.handleSuggestedContactsResponse(data);\n});\n```\n\n**3. Connect to server**\n\n```javascript\nclient.connect(\"ws://localhost:2208/ws\");\n```\n\n# Used By\n\n1. [Freechat]([https://youngmonkeys.org/asset/freechat/](https://github.com/youngmonkeys/freechat))\n\n# Tutorials\n\n1. [EzyChat with ReactJS](https://youtube.com/playlist?list=PLlZavoxtKE1IfKY7ohkLLyv6YkHMkvH6G)\n\n# Contact us\n\n- Touch us on [Facebook](https://www.facebook.com/youngmonkeys.org)\n- Ask us on [stackask.com](https://stackask.com)\n- Email to me [Dzung](mailto:itprono3@gmail.com)\n\n# License\n\nApache License, Version 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoungmonkeys%2Fezyfox-server-es6-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoungmonkeys%2Fezyfox-server-es6-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoungmonkeys%2Fezyfox-server-es6-client/lists"}