{"id":50571,"library":"gobwas-ws","title":"gobwas WebSocket","description":"Package ws implements a client and server for the WebSocket protocol as specified in RFC 6455.","status":"active","version":"1.4.0","language":"go","source_language":null,"source_url":"https://github.com/gobwas/ws","tags":["websocket","rfc6455","networking","real-time"],"install":[{"cmd":"go get github.com/gobwas/ws","lang":"bash","label":"Install github.com/gobwas/ws"}],"dependencies":[],"imports":[{"symbol":"ws","correct":"github.com/gobwas/ws"}],"quickstart":{"code":"package main\n\nimport (\n\t\"log\"\n\t\"net/http\"\n\n\t\"github.com/gobwas/ws\"\n\t\"github.com/gobwas/ws/wsutil\"\n)\n\nfunc main() {\n\thttp.HandleFunc(\"/\", func(w http.ResponseWriter, r *http.Request) {\n\t\tconn, _, _, err := ws.UpgradeHTTP(r, w)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\tdefer conn.Close()\n\n\t\tmsg, op, err := wsutil.ReadClientData(conn)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\tlog.Printf(\"Received: %s (opcode %d)\", msg, op)\n\t})\n\n\tlog.Fatal(http.ListenAndServe(\":8080\", nil))\n}","lang":"go","description":"Upgrades an HTTP connection to WebSocket and reads a message."},"warnings":[],"env_vars":null,"search_vec":"'6455':18 'client':7 'gobwa':1 'implement':5 'network':21 'packag':3 'protocol':13 'real':23 'real-tim':22 'rfc':17 'rfc6455':20 'server':9 'specifi':15 'time':24 'websocket':2,12,19 'ws':4","created_at":"2026-06-15T04:59:28.689726+00:00","updated_at":"2026-06-15T04:59:28.689726+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/gobwas/ws","github":"https://github.com/gobwas/ws","docs":"https://pkg.go.dev/github.com/gobwas/ws#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}