{"id":13744830,"url":"https://github.com/pubnub/pubnub-actionscript","last_synced_at":"2026-02-18T03:03:15.788Z","repository":{"id":10590495,"uuid":"12802478","full_name":"pubnub/pubnub-actionscript","owner":"pubnub","description":"Awesome ActionScript 3 (Flash) SDK for Publish/Subscribe on PubNub Real-time Network - http://www.pubnub.com","archived":false,"fork":false,"pushed_at":"2014-11-07T19:46:12.000Z","size":450,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-10-23T10:56:49.622Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","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/pubnub.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":"2013-09-13T05:50:15.000Z","updated_at":"2021-09-29T18:41:36.000Z","dependencies_parsed_at":"2022-09-06T10:11:49.491Z","dependency_job_id":null,"html_url":"https://github.com/pubnub/pubnub-actionscript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pubnub/pubnub-actionscript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubnub%2Fpubnub-actionscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubnub%2Fpubnub-actionscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubnub%2Fpubnub-actionscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubnub%2Fpubnub-actionscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pubnub","download_url":"https://codeload.github.com/pubnub/pubnub-actionscript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubnub%2Fpubnub-actionscript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29566669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T00:47:08.760Z","status":"online","status_checked_at":"2026-02-18T02:00:09.468Z","response_time":162,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-08-03T05:01:16.865Z","updated_at":"2026-02-18T03:03:15.761Z","avatar_url":"https://github.com/pubnub.png","language":"ActionScript","readme":"# PubNub Adobe Air ActionScript 3 SDK\n\nThis is a brand new rewrite of the Flash SDK with \na massive improvement on performance and reliability.\n\n### Simple Example\n\n```javascript\npackage {\n    import flash.display.Sprite;\n    import com.pubnub.PubNub;\n\n    public class Main extends Sprite {\n        public function Main() {\n\n            // Setup\n            var pubnub:PubNub = new PubNub({ message : function message(\n                message:Object,\n                channel:String,\n                timetoken:String,\n                age:Number\n            ):void {\n                trace('message:',message);     // Message Payload\n                trace('channel:',channel);     // Channel Source\n                trace('timetoken:',timetoken); // PubNub TimeToken\n                trace('age:',age);             // Aproxmate Age\n            } });\n\n            // Add Channels\n            pubnub.subscribe({ channels : [ 'a', 'b', 'c' ] });\n\n        }\n    }\n}\n```\n\n### Import PubNub Client\n\n```javascript\nimport com.pubnub.PubNub;\n```\n\n### Full Init PubNub Client\n\nTo see full usage example, visit the `Main.as` file.\n\n```javascript\nvar pubnub:PubNub = new PubNub({\n    publish_key   : \"demo\",              // Publish Key\n    subscribe_key : \"demo\",              // Subscribe Key\n    uuid          : \"USER_ID\",           // User ID of Connection\n    drift_check   : 60000,               // Re-calculate Time Drift (ms)\n    ssl           : false,               // SSL ?\n    cipher_key    : 'mypass',            // AES256 Crypto Password\n    message       : message,             // onMessage Receive\n    idle          : idle,                // onPing Idle\n    connect       : connect,             // onConnect\n    reconnect     : reconnect,           // onReconnect\n    disconnect    : disconnect           // onDisconnect\n});\n```\n\n### Add Channels\n```javascript\npubnub.subscribe({ channels : [ 'b', 'c' ] });\n```\n\n### Remove Channels\n```javascript\npubnub.unsubscribe({ channels : [ 'b', 'c' ] });\n```\n\n### Publish Message\n```javascript\npubnub.publish({\n    channel  : 'b',\n    message  : 'Hello!',\n    response : function(r:Object):void {\n        trace('publish:',JSON.stringify(r));\n    }\n});\n```\n","funding_links":[],"categories":["API"],"sub_categories":["Other API"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpubnub%2Fpubnub-actionscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpubnub%2Fpubnub-actionscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpubnub%2Fpubnub-actionscript/lists"}