{"action":"closed","issue":{"url":"https://api.github.com/repos/gorilla/websocket/issues/122","repository_url":"https://api.github.com/repos/gorilla/websocket","labels_url":"https://api.github.com/repos/gorilla/websocket/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/gorilla/websocket/issues/122/comments","events_url":"https://api.github.com/repos/gorilla/websocket/issues/122/events","html_url":"https://github.com/gorilla/websocket/issues/122","id":148127231,"number":122,"title":"Implementation ","user":{"login":"mehdigmira","id":13655536,"avatar_url":"https://avatars.githubusercontent.com/u/13655536?v=3","gravatar_id":"","url":"https://api.github.com/users/mehdigmira","html_url":"https://github.com/mehdigmira","followers_url":"https://api.github.com/users/mehdigmira/followers","following_url":"https://api.github.com/users/mehdigmira/following{/other_user}","gists_url":"https://api.github.com/users/mehdigmira/gists{/gist_id}","starred_url":"https://api.github.com/users/mehdigmira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehdigmira/subscriptions","organizations_url":"https://api.github.com/users/mehdigmira/orgs","repos_url":"https://api.github.com/users/mehdigmira/repos","events_url":"https://api.github.com/users/mehdigmira/events{/privacy}","received_events_url":"https://api.github.com/users/mehdigmira/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-13T17:22:51Z","updated_at":"2016-04-13T18:05:18Z","closed_at":"2016-04-13T18:05:18Z","body":"Hey,\r\n\r\nI'm just discovering your library. And i need some explanations on how it is implemented:\r\nIs ReadMessage implemented using go channels (it seems like the easiest way to deal with concurrency).\r\nIf so, why isn't their a way to use it as a channel and do something like this ?\r\n```\r\nfor {\r\nselect{\r\n    case <-conn1.readMessage():\r\n        do smth\r\n    case <-conn2.ReadMessage():\r\n        do smth else\r\n}\r\n}\r\n```\r\nOtherwise I'd have to launch a coroutine to handle every connection, which seems a little bit awkward"}}