{"id":15304281,"url":"https://github.com/deven96/gosock","last_synced_at":"2025-09-15T07:06:14.870Z","repository":{"id":57502835,"uuid":"184402711","full_name":"deven96/gosock","owner":"deven96","description":"A foray into sockets using golang","archived":false,"fork":false,"pushed_at":"2019-11-22T15:49:54.000Z","size":8009,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-11T23:34:50.164Z","etag":null,"topics":["golang","golang-application","websocket-chat","websockets"],"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/deven96.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}},"created_at":"2019-05-01T10:48:22.000Z","updated_at":"2022-02-17T00:46:50.000Z","dependencies_parsed_at":"2022-09-02T01:52:02.275Z","dependency_job_id":null,"html_url":"https://github.com/deven96/gosock","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/deven96/gosock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deven96%2Fgosock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deven96%2Fgosock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deven96%2Fgosock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deven96%2Fgosock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deven96","download_url":"https://codeload.github.com/deven96/gosock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deven96%2Fgosock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275219752,"owners_count":25425939,"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","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"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":["golang","golang-application","websocket-chat","websockets"],"created_at":"2024-10-01T07:55:02.253Z","updated_at":"2025-09-15T07:06:14.848Z","avatar_url":"https://github.com/deven96.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoSOCK\n\nThis is a basic implementation of a chatroom using websockets.\nEmbedded in this project is also a [custom logging library](pkg/custlog/)\n\n[![Build Status](https://travis-ci.org/deven96/gosock.svg?branch=master)](https://travis-ci.org/deven96/gosock)\n![Docker Pulls](https://img.shields.io/docker/pulls/deven96/gosock.svg?style=flat)\n\n\n## Overview [![GoDoc](https://godoc.org/github.com/deven96/gosock?status.svg)](https://godoc.org/github.com/deven96/gosock)\n\n## Install\n\n```bash\n    go get github.com/deven96/gosock\n```\n\n## Usage\n\nTo use the logging library, call this snippet preferably in the init\n\n```golang\n\n    import (\n        \"github.com/deven96/gosock/pkg/custlog\"\n    )\n    \n    func init() {\n        // name the log file \"test.log\" and write to it in append mode\n        def_writers := custlog.DefaultWriters(\"test.log\", true)\n        custlog.LogInit(def_writers)\n    }\n\n    func main(){\n        custlog.Info.Println(\"This is just information\")\n        custlog.Warning.Println(\"This is just a warning\")\n        custlog.Error.Println(\"This is just an error\")\n    }\n```\n\nTo run the project, \n\n```bash\n\n    cd $GOPATH/github.com/deven96/gosock\n\n    # run the project in develop mode\n    go run *.go\n\n    # generate executable for current os\n    go build github.com/deven96/gosock\n\n    # run the executable\n    ./gosock\n```\n\nFor using the binaries only, read [Binaries usage](assets/extra/usage.md)\n\n## Example Interaction\n\n![Example interaction](assets/images/example.png)\n\n## TODO\n\n - [ ] Incorporate a standard Golang ORM\n - [ ] Include User and Message models\n - [ ] Extend chat interface to include login and signup\n - [ ] Include face avatar on every message\n - [ ] Create a Rudeness API that can detect how unsensitive a statement is\n - [ ] Kick avatar out after every 3 overly rude messages\n - [ ] Deploy on Linode server\n - [ ] Linode deploy should be linked to Travis pipeline \n\n## License (MIT)\n\nThis project is opened under the [MIT 2.0 License](https://github.com/deven96/gosock/blob/master/LICENSE) which allows very broad use for both academic and commercial purposes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeven96%2Fgosock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeven96%2Fgosock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeven96%2Fgosock/lists"}