{"id":19388905,"url":"https://github.com/james2doyle/post-socket","last_synced_at":"2025-02-24T20:00:11.336Z","repository":{"id":145775406,"uuid":"147983449","full_name":"james2doyle/post-socket","owner":"james2doyle","description":"Turn a POST request (JSON) to Websocket event","archived":false,"fork":false,"pushed_at":"2018-09-09T01:51:56.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-07T08:49:00.998Z","etag":null,"topics":["golang","server","webhook","websocket"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/james2doyle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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":"2018-09-09T01:35:58.000Z","updated_at":"2018-09-09T05:17:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8d4b4d7-55a2-498b-84c6-198a03ec850c","html_url":"https://github.com/james2doyle/post-socket","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/james2doyle%2Fpost-socket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fpost-socket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fpost-socket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fpost-socket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/james2doyle","download_url":"https://codeload.github.com/james2doyle/post-socket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240549434,"owners_count":19819131,"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":["golang","server","webhook","websocket"],"created_at":"2024-11-10T10:14:01.050Z","updated_at":"2025-02-24T20:00:11.312Z","avatar_url":"https://github.com/james2doyle.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# POST Socket\n\n\u003e Turn a POST request (JSON) to Websocket event\n\n### Config\n\n```toml\n# what port should the webhook web server run on?\nWebhookPort = 8080\n# what port should the websocket run on?\nWebsocketPort = 8081\nLogging = true\n```\n\n### Building with Docker\n\n*Be sure to update the `EXPOSE` to follow the ports you setup in `config.toml`*\n\n* `docker build -t post-socket .`\n* `docker run post-socket:latest`\n\n### Building with \"go build\"\n\n* `go build`\n* `./post-socket`\n\n*With \"go run\":*\n\n* `go run main.go`\n\n### Deploying\n\nYou can use [now.sh](https://zeit.co/now) to deploy Docker apps. You can use their initial service for free. However, there is a limit on the number of deploys and also you are assigned random URL for each deploy. So this would not be a good option for long term usage.\n\nUse `now` to deploy.\n\n### Example\n\nOpen `example.html` on a webserver while the `post-socket` is running.\n\nYou can connect to the socket and send POST requests to the webhook server and see them come up on the socket connection.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames2doyle%2Fpost-socket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjames2doyle%2Fpost-socket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames2doyle%2Fpost-socket/lists"}