{"id":23651933,"url":"https://github.com/microfocus/octane-websockets-client-nodejs","last_synced_at":"2025-11-16T20:30:14.603Z","repository":{"id":50792348,"uuid":"193358179","full_name":"MicroFocus/octane-websockets-client-nodejs","owner":"MicroFocus","description":"WebSockets client providing connectivity to ALM Octane's endpoints (NodeJS env)","archived":false,"fork":false,"pushed_at":"2021-05-29T07:55:04.000Z","size":15,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T16:49:02.113Z","etag":null,"topics":["octane"],"latest_commit_sha":null,"homepage":"","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/MicroFocus.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-23T14:30:41.000Z","updated_at":"2020-08-21T10:22:37.000Z","dependencies_parsed_at":"2022-09-11T22:01:24.528Z","dependency_job_id":null,"html_url":"https://github.com/MicroFocus/octane-websockets-client-nodejs","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/MicroFocus%2Foctane-websockets-client-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MicroFocus%2Foctane-websockets-client-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MicroFocus%2Foctane-websockets-client-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MicroFocus%2Foctane-websockets-client-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MicroFocus","download_url":"https://codeload.github.com/MicroFocus/octane-websockets-client-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239611992,"owners_count":19668274,"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":["octane"],"created_at":"2024-12-28T16:49:08.571Z","updated_at":"2025-11-16T20:30:14.554Z","avatar_url":"https://github.com/MicroFocus.png","language":"JavaScript","readme":"## Summary\n\n`octane-websockets-client-nodejs` is intended to simplify connection to ALM Octane's WebSocket endpoints.\n\n#### Usage\n\nFirst, __bundle__ the library's relevant version to your package with package manager's standard ways.\n(TODO: we should publish the library to NPM or something like this)\n\nNext, __import__ the library into your code from wherever it is placed:\n\n```javascript 1.8\nconst octaneWSClient = require('octane-ws-client');\n```\n\nThis imported client can connect to multiple endpoints.\n\nUse `connect` method to provide the configuration of the targeted WS endpoint.\n\nThis method may be called any number of times and will connect that number of WS clients, so call it wisely.\n\nWhile performing connection, the library will:\n- verify the configuration\n- perform the login\n- perform the connection\n- bind your custom provided (if provided) `onMessage` method to the WS so that on any incoming message it'll be called\n\n#### API\n`connect`\n  - async\n  - receives __configuration object__\n  - returns __Octane WebSocket client__\n  \n`configuration object` shaped as following:\n```\n{\n  \"isSSL\": false,\n  \"octaneHost\": \"localhost\",\n  \"octanePort\": 8080,\n  \"sharedSpace\": 1001,\n  \"endpoint\": \"webhooks\",\n  \"onMessage\": \u003cfunction\u003e,\n  \"client\": \"ws_yje4rozx2o21xtpxp3eeon2d0\",\n  \"secret\": \"(ac51444da788a8b7K\",\n  \"proxyHost\": \"\",\n  \"proxyPort\": \"\"\n}\n```\n \n`Octane WebSocket client` shaped as following:\n```\n{\n  \"onError\": \u003cfunction\u003e,\n  \"onMessage\": \u003cfunction\u003e\n}\n```\n\n\u003e `onMessage` function MAY be passed as part of an initial configuration, and/or set later on, on the client object self.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrofocus%2Foctane-websockets-client-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrofocus%2Foctane-websockets-client-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrofocus%2Foctane-websockets-client-nodejs/lists"}