{"id":15203023,"url":"https://github.com/austoonz/powershell-core-simple-websockets-chat-app","last_synced_at":"2026-03-06T08:31:14.327Z","repository":{"id":160533687,"uuid":"181256661","full_name":"austoonz/powershell-core-simple-websockets-chat-app","owner":"austoonz","description":"This is a personal project created so I could learn about the websocket support in API Gateway.","archived":false,"fork":false,"pushed_at":"2019-04-14T03:55:02.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-15T22:42:50.623Z","etag":null,"topics":["apigateway","aws","lambda","powershell-core","websockets"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/austoonz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2019-04-14T03:39:48.000Z","updated_at":"2023-04-19T18:57:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4c77349-cd29-4823-b8f7-5d3df9eac04b","html_url":"https://github.com/austoonz/powershell-core-simple-websockets-chat-app","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"04bef3ac0d4847f5b6b5cb7382838dff6e06eeac"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austoonz%2Fpowershell-core-simple-websockets-chat-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austoonz%2Fpowershell-core-simple-websockets-chat-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austoonz%2Fpowershell-core-simple-websockets-chat-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austoonz%2Fpowershell-core-simple-websockets-chat-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/austoonz","download_url":"https://codeload.github.com/austoonz/powershell-core-simple-websockets-chat-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242005175,"owners_count":20056424,"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":["apigateway","aws","lambda","powershell-core","websockets"],"created_at":"2024-09-28T04:22:15.196Z","updated_at":"2026-03-06T08:31:09.279Z","avatar_url":"https://github.com/austoonz.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PowerShell Core Port of simple-websockets-chat-app\n\nThis is a PowerShell Core port of the [simple-websockets-chat-app](https://github.com/aws-samples/simple-websockets-chat-app) sample for AWS Lambda. For more information see the [Announcing WebSocket APIs in Amazon API Gateway](https://aws.amazon.com/blogs/compute/announcing-websocket-apis-in-amazon-api-gateway/) blog post.\n\n## Deploy\n\nTo deploy this sample, ensure you have setup a [PowerShell Core Development Environment for AWS Lambda](https://docs.aws.amazon.com/lambda/latest/dg/lambda-powershell-setup-dev-environment.html).\n\nFirst, execute the following PowerShell commands in the root directory of this repository. This will import the WebSocket PowerShell Module and compile the PowerShell Core AWS Lambda Function.\n\n```powershell\nImport-Module -Name 'AWSLambdaPSCore'\n\n$functionScript = [System.IO.Path]::Combine('.', 'WebSocket', 'WebSocket.ps1')\n$websocketManifest = [System.IO.Path]::Combine('.', 'WebSocket', 'WebSocket.psd1')\n$lambdaPackage = [System.IO.Path]::Combine('.', '_packaged', 'WebSocket.zip')\n\nImport-Module $websocketManifest\n\n$null = New-AWSPowerShellLambdaPackage -ScriptPath $functionScript -OutputPackage $lambdaPackage\n```\n\nThis sample can be deployed using the [AWS Lambda .NET Core Global Tool](https://aws.amazon.com/blogs/developer/net-core-global-tools-for-aws/).\n\nTo install the global tool, execute the following command. Be sure at least version 3.1.0 of the tool is installed.\n\n```\ndotnet tool install -g Amazon.Lambda.Tools\n```\n\nTo upgrade the global tool, execute the following command.\n\n```\ndotnet tool update -g Amazon.Lambda.Tools\n```\n\nTo deploy the sample application, execute the following command in the root directory of this repository.\n\n```\ndotnet lambda deploy-serverless \u003cstack-name\u003e --template template.yaml --region \u003cregion\u003e --s3-bucket \u003cstorage-bucket\u003e\n```\n\nTo test the WebSockets functionality, use a WebSockets client (such as the Chrome \"Simple WebSocket Client\" extension) to connect to the value listed in the CloudFormation \"WebSocketURI\" output.\n\nTo send messages to connected clients, send a JSON message formatted like this, with the value of \"data\" as the message to send.\n\n```\n{\"action\":\"sendmessage\", \"data\":\"Hello World\"}\n```\n\nTo delete the sample application, execute the following command.\n\n```\ndotnet lambda delete-serverless \u003cstack-name\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustoonz%2Fpowershell-core-simple-websockets-chat-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustoonz%2Fpowershell-core-simple-websockets-chat-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustoonz%2Fpowershell-core-simple-websockets-chat-app/lists"}