{"id":19714933,"url":"https://github.com/youngmonkeys/ezyfox-server-js-client","last_synced_at":"2025-04-29T20:30:31.889Z","repository":{"id":42025583,"uuid":"145011086","full_name":"youngmonkeys/ezyfox-server-js-client","owner":"youngmonkeys","description":"ezyfox server javascript client","archived":false,"fork":false,"pushed_at":"2023-01-15T11:36:07.000Z","size":110,"stargazers_count":4,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T18:54:09.386Z","etag":null,"topics":["html5","javascript","socket-client","socket-io-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":null,"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":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-16T16:06:35.000Z","updated_at":"2025-03-10T01:47:42.000Z","dependencies_parsed_at":"2023-02-09T22:01:17.686Z","dependency_job_id":null,"html_url":"https://github.com/youngmonkeys/ezyfox-server-js-client","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngmonkeys%2Fezyfox-server-js-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngmonkeys%2Fezyfox-server-js-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngmonkeys%2Fezyfox-server-js-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngmonkeys%2Fezyfox-server-js-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youngmonkeys","download_url":"https://codeload.github.com/youngmonkeys/ezyfox-server-js-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251578205,"owners_count":21611990,"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":["html5","javascript","socket-client","socket-io-client","websocket"],"created_at":"2024-11-11T22:36:37.448Z","updated_at":"2025-04-29T20:30:31.469Z","avatar_url":"https://github.com/youngmonkeys.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ezyfox-server-javascript-client \u003cimg src=\"https://github.com/youngmonkeys/ezyfox-server/blob/master/logo.png\" width=\"64\" /\u003e\njavascript client for ezyfox server\n\n# Synopsis\n\njavascript client for ezyfox server\n\n# Documentation\n\n[https://youngmonkeys.org/ezyfox-javascript-client-sdk](https://youngmonkeys.org/ezyfox-javascript-client-sdk/)\n\n# Code Example\n\nYou can find the full example [here](https://github.com/youngmonkeys/ezyfox-server-js-client/blob/master/index.html)\n\n**1. Create ws client**\n```javascript\nvar config = new EzyClientConfig;\nconfig.zoneName = \"zoneName\";\nvar clients = EzyClients.getInstance();\nvar client = clients.newDefaultClient(config);\n```\n\n**2. Setup ws client***\n\n```javascript\nvar setup = client.setup;\nsetup.addEventHandler(EzyEventType.DISCONNECTION, disconnectionHandler);\nsetup.addDataHandler(EzyCommand.HANDSHAKE, handshakeHandler);\nsetup.addDataHandler(EzyCommand.LOGIN, userLoginHandler);\nsetup.addDataHandler(EzyCommand.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# Installation\n\nYou can download latest version from [bin](https://github.com/youngmonkeys/ezyfox-server-js-client/tree/master/bin) folder, add the latest version file to you project and import to your html file:\n\n``` html\n\u003cscript src=\"ezyclient-1.0.3.min.js\"\u003e\u003c/script\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoungmonkeys%2Fezyfox-server-js-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoungmonkeys%2Fezyfox-server-js-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoungmonkeys%2Fezyfox-server-js-client/lists"}