{"id":13616344,"url":"https://github.com/rolandoislas/BrightWebSocket","last_synced_at":"2025-04-14T00:32:08.043Z","repository":{"id":82858727,"uuid":"122816672","full_name":"rolandoislas/BrightWebSocket","owner":"rolandoislas","description":"RFC 6455 WebSocket Library for the Roku","archived":true,"fork":false,"pushed_at":"2019-07-10T14:14:34.000Z","size":118,"stargazers_count":14,"open_issues_count":4,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-02T20:48:09.325Z","etag":null,"topics":["brightscript","roku","websocket"],"latest_commit_sha":null,"homepage":null,"language":"Brightscript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rolandoislas.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-02-25T08:00:06.000Z","updated_at":"2023-09-08T17:37:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"f00b919a-d73f-42b5-ae61-22822345c84d","html_url":"https://github.com/rolandoislas/BrightWebSocket","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/rolandoislas%2FBrightWebSocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandoislas%2FBrightWebSocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandoislas%2FBrightWebSocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandoislas%2FBrightWebSocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rolandoislas","download_url":"https://codeload.github.com/rolandoislas/BrightWebSocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223611945,"owners_count":17173541,"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":["brightscript","roku","websocket"],"created_at":"2024-08-01T20:01:27.185Z","updated_at":"2024-11-08T00:31:22.507Z","avatar_url":"https://github.com/rolandoislas.png","language":"Brightscript","readme":"# BrightWebSocket\n\nA SceneGraph websocket client library written in BrightScript\n\n**This repo is no longer maintained. See [This fork](https://github.com/SuitestAutomation/BrightWebSocket) for an actively maintained repo.**\n\n# RFC 6455\n\nFollows [RFC 6455](https://tools.ietf.org/html/rfc6455)\n\nNotes:\n\n- Uses ASCII instead of UTF-8 for string operations\n- Does not support secure web sockets at this time\n\n# Installation\n\nThe contents of the \"src\" folder in the repository's root should be placed\n in the \"components\" folder of a SceneGraph Roku app.\n \n# Using the Library\n\nThe client follows the \n [HTML WebSocket interface](https://html.spec.whatwg.org/multipage/web-sockets.html#the-websocket-interface), \n modified to work with BrightScript conventions. Those familiar with browser\n (JavaScript) WebSocket implementations should find this client similar.\n\nExample:\n\n```brightscript\nfunction init() as void\n    m.ws = createObject(\"roSGNode\", \"WebSocketClient\")\n    m.ws.observeField(\"on_open\", \"on_open\")\n    m.ws.observeFiled(\"on_message\", \"on_message\")\n    m.ws.open = \"ws://echo.websocket.org/\"\nend function\n\nfunction on_open(event as object) as void\n    m.ws.send = [\"Hello World\"]\nend function\n\nfunction on_message(event as object) as void\n    print event.getData().message\nend function\n```\n\nFor a working sample app see the \"test\" folder. Its contents can be zipped for\n installation as a dev channel on a Roku.\n\n# License\n\nThe MIT License. See license.txt.\n","funding_links":[],"categories":["HarmonyOS","Build Tools, Deployment \u0026 Utility Libraries"],"sub_categories":["Windows Manager","API Libraries \u0026 SDKs"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolandoislas%2FBrightWebSocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frolandoislas%2FBrightWebSocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolandoislas%2FBrightWebSocket/lists"}