{"id":17283701,"url":"https://github.com/prettymuchbryce/flashio","last_synced_at":"2026-01-06T06:38:46.615Z","repository":{"id":15236600,"uuid":"17965399","full_name":"prettymuchbryce/flashio","owner":"prettymuchbryce","description":"Reliable TCP socket connectivity from Flash to node.js","archived":false,"fork":false,"pushed_at":"2016-02-24T19:23:13.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T16:55:45.860Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/prettymuchbryce.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":"2014-03-21T02:14:27.000Z","updated_at":"2016-06-03T09:09:37.000Z","dependencies_parsed_at":"2022-07-22T14:32:07.868Z","dependency_job_id":null,"html_url":"https://github.com/prettymuchbryce/flashio","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/prettymuchbryce%2Fflashio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettymuchbryce%2Fflashio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettymuchbryce%2Fflashio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettymuchbryce%2Fflashio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prettymuchbryce","download_url":"https://codeload.github.com/prettymuchbryce/flashio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245689509,"owners_count":20656417,"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":[],"created_at":"2024-10-15T09:51:58.907Z","updated_at":"2026-01-06T06:38:46.573Z","avatar_url":"https://github.com/prettymuchbryce.png","language":"ActionScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# This project is no longer maintained.\n\n\u003e flashio facilitates JSON/Object communication from Flash to node.js over a TCP socket.\n\nThe goal of this project is to create a reliable way for Flash to talk to node.js over a typical (not a websocket) TCP connection. \n\n## Server (node.js)\n\n### Installation\n\nInstall via npm `npm install flashio`\n\n### Usage\n\nYou can create a server via\n\n    var flashio = require('flashio);\n    var server = flashio.createServer(port);\n\n\nYou can then listen to various events via\n\n    server.on('connect', function(data) {\n      console.log(data.socket.id + \" connected\");\n    };\n\nEvents are\n* .on('**data**', function(data)) *emitted when client sends data*\n* .on('**end**', function(data)) *emitted when client disconnects*\n* .on('**error**', function(error)) *emitted on error*\n* .on('**connect**', function(data)) *emitted on connect*\n\nAll event callback parameters (data or error) contain a data.socket or error.socket value representing a client's socket.\nEach socket has a unique id property via `data.socket.id`\n\nIn order to send data to the client use\n\n`server.send(socket, { message: \"Hi client\" });`\n\nor\n\n`server.sendToId(socket.id, { message: \"Hi client\" });`\n\n## Client (flash)\n\n### Installation\n\nFind the flashio package in this repository under src/flash/src/flashio. Include this package in your AS3 project.\n\n### Usage\n\nYou can create a client via\n\n    var client:FlashIO = new FlashIO(host, port);\n    client.connect();\n\nYou can listen to various events via\n\n    client.addEventListener(DataEvent.DATA, function(event:DataEvent):void {\n    \ttrace(data.message);\n    });\n    \nEvents are\n* Event.CONNECT\n* Event.CLOSE\n* IOErrorEvent.IO_ERROR\n* SecurityErrorEvent.SECURITY_ERROR\n* flashio.DataEvent\n\nIn order to send data to the server use\n\n`client.send({ message: \"Hi server\" });`\n\n## Other information\n\nThis is a work in progress.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprettymuchbryce%2Fflashio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprettymuchbryce%2Fflashio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprettymuchbryce%2Fflashio/lists"}