{"id":21043094,"url":"https://github.com/mrinalxdev/gowebsocket","last_synced_at":"2025-05-15T17:31:26.964Z","repository":{"id":149649042,"uuid":"574863060","full_name":"mrinalxdev/gowebsocket","owner":"mrinalxdev","description":"Custom WebSocket Server in Golang","archived":false,"fork":false,"pushed_at":"2023-11-12T08:29:18.000Z","size":584,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T16:44:56.237Z","etag":null,"topics":["advanced-programming","chat-app","golang","websocket"],"latest_commit_sha":null,"homepage":"","language":"Go","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/mrinalxdev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-06T08:36:27.000Z","updated_at":"2023-12-15T21:13:57.000Z","dependencies_parsed_at":"2024-06-21T15:30:01.138Z","dependency_job_id":null,"html_url":"https://github.com/mrinalxdev/gowebsocket","commit_stats":null,"previous_names":["mrinalxdev/quick-snap","mrinalxdev/gowebsocket"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinalxdev%2Fgowebsocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinalxdev%2Fgowebsocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinalxdev%2Fgowebsocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrinalxdev%2Fgowebsocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrinalxdev","download_url":"https://codeload.github.com/mrinalxdev/gowebsocket/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225365906,"owners_count":17462973,"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":["advanced-programming","chat-app","golang","websocket"],"created_at":"2024-11-19T14:10:57.015Z","updated_at":"2024-11-19T14:10:57.637Z","avatar_url":"https://github.com/mrinalxdev.png","language":"Go","readme":"# Simple Go Websocket Server to chat\n\nThe code is used to provide a map of websocket connections.\n\n\u003e Creates a new server object.\n\n- The code starts by declaring a variable called s. It then declares the function handleWS which takes in a websocket connection and prints out information about it.\nThe code then starts to analyze the incoming websocket connection from client: fmt.Println(\"new incoming connection from client:\", ws.RemoteAddr()) The code is printing out information about the new incoming websocket connection from client, but also has an additional line that says \"new incoming connection from client\".\nThis means that there are two connections coming into this server at once, one for each of these lines of code.\nThen, after analyzing both connections, the program sets up a loop to read data off of them and print it on screen with fmt.Println().\nThe code is meant to handle incoming websocket connections.\nIt will initialize a new connection and set the conns[ws] variable as true.\nThe next step in the snippet is for the function to read from ws, which will then be handled by the loop that follows.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrinalxdev%2Fgowebsocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrinalxdev%2Fgowebsocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrinalxdev%2Fgowebsocket/lists"}