{"id":20364179,"url":"https://github.com/mabuonomo/botkit-socket-client","last_synced_at":"2025-03-04T18:43:41.835Z","repository":{"id":44276173,"uuid":"234804659","full_name":"mabuonomo/botkit-socket-client","owner":"mabuonomo","description":"A small botkit (web) socket client library, written in typescript, for browser","archived":false,"fork":false,"pushed_at":"2023-05-07T19:16:27.000Z","size":1462,"stargazers_count":2,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T07:47:04.379Z","etag":null,"topics":["botkit","websocket"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/mabuonomo.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":"2020-01-18T22:10:38.000Z","updated_at":"2023-03-09T00:22:27.000Z","dependencies_parsed_at":"2024-11-15T00:10:28.110Z","dependency_job_id":"a42c7823-cfc9-426f-96a6-9b7fb6b26e1f","html_url":"https://github.com/mabuonomo/botkit-socket-client","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/mabuonomo%2Fbotkit-socket-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabuonomo%2Fbotkit-socket-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabuonomo%2Fbotkit-socket-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabuonomo%2Fbotkit-socket-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mabuonomo","download_url":"https://codeload.github.com/mabuonomo/botkit-socket-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241904677,"owners_count":20040020,"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":["botkit","websocket"],"created_at":"2024-11-15T00:10:22.571Z","updated_at":"2025-03-04T18:43:41.800Z","avatar_url":"https://github.com/mabuonomo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Botkit socket client\n\nA small botkit (https://botkit.ai/) socket client library written in typescript\n\n## Usage\nInstall\n```sh\nnpm i --save botkit-socket-client\n```\n\nImport the library\n```html\n \u003cscript src=\"../dist/prod/botkit.js\"\u003e\u003c/script\u003e\n```\n\nCreate a client and send a message\n```js\nconst config = {\n    ws_url: \"ws://localhost:3000\",\n    reconnect_timeout: 3000,\n    max_reconnect: 5,\n    enable_history: false\n}\n\nlet client = new Botkit.BotKitClient(config);\nclient.send(\"Demo sender\")\n```\n\nadd an event listener:\n```ts\nclient.getSocket().addEventListener(ListenerEvent.OPEN, (event) =\u003e {\n    console.log('event received!');\n    // ...\n});\n```\n\n## Are you a dev? You are welcome!\n\nInitialize the project\n```sh\nmake install\n```\n\nBuild in dev mode\n```sh\nmake build-prod\n```\n\nBuild in prod mode\n```sh\nmake watch-dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmabuonomo%2Fbotkit-socket-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmabuonomo%2Fbotkit-socket-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmabuonomo%2Fbotkit-socket-client/lists"}