{"action":"opened","issue":{"url":"https://api.github.com/repos/thrasher-/gocryptotrader/issues/119","repository_url":"https://api.github.com/repos/thrasher-/gocryptotrader","labels_url":"https://api.github.com/repos/thrasher-/gocryptotrader/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/thrasher-/gocryptotrader/issues/119/comments","events_url":"https://api.github.com/repos/thrasher-/gocryptotrader/issues/119/events","html_url":"https://github.com/thrasher-/gocryptotrader/issues/119","id":316687606,"number":119,"title":"Concurrent websocket connection panic","user":{"login":"gloriousCode","id":9261323,"avatar_url":"https://avatars1.githubusercontent.com/u/9261323?v=4","gravatar_id":"","url":"https://api.github.com/users/gloriousCode","html_url":"https://github.com/gloriousCode","followers_url":"https://api.github.com/users/gloriousCode/followers","following_url":"https://api.github.com/users/gloriousCode/following{/other_user}","gists_url":"https://api.github.com/users/gloriousCode/gists{/gist_id}","starred_url":"https://api.github.com/users/gloriousCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gloriousCode/subscriptions","organizations_url":"https://api.github.com/users/gloriousCode/orgs","repos_url":"https://api.github.com/users/gloriousCode/repos","events_url":"https://api.github.com/users/gloriousCode/events{/privacy}","received_events_url":"https://api.github.com/users/gloriousCode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-23T07:08:07Z","updated_at":"2018-04-23T07:08:07Z","closed_at":null,"author_association":"COLLABORATOR","body":"`2018/04/23 17:03:37 New websocket client connected. Connected clients: 1. Limit 1.\r\n2018/04/23 17:03:37 GET /ws     ws      2.5198ms\r\n2018/04/23 17:03:37 Websocket req: auth\r\n2018/04/23 17:03:37 Websocket client authenticated successfully`\r\n...\r\n`panic: concurrent write to websocket connection\r\n\r\ngoroutine 139 [running]:\r\ngithub.com/gorilla/websocket.(*Conn).flushFrame(0xc0422db680, 0x1, 0x0, 0x0, 0x0, 0x0, 0xc04228b9b0)\r\n        C:/Users/User/gocode/src/github.com/gorilla/websocket/conn.go:519 +0x66d\r\ngithub.com/gorilla/websocket.(*messageWriter).Close(0xc042208018, 0xab0a20, 0xc042216780)\r\n        C:/Users/User/gocode/src/github.com/gorilla/websocket/conn.go:642 +0x82\r\ngithub.com/gorilla/websocket.(*Conn).WriteJSON(0xc0422db680, 0xab0a20, 0xc042216780, 0xc042216780, 0x40bab963d70a3d71)\r\n        C:/Users/User/gocode/src/github.com/gorilla/websocket/json.go:27 +0x119\r\nmain.BroadcastWebsocketMessage(0xb49b50, 0x4, 0xc042134730, 0x4, 0xb50f76, 0xd, 0xaf7080, 0xc042148080, 0xc04228bb60, 0x411a1c)\r\n        C:/Users/User/gocode/src/github.com/thrasher-/gocryptotrader/websocket.go:121 +0xf4\r\nmain.relayWebsocketEvent(0xaf7080, 0xc042148080, 0xb50f76, 0xd, 0xc042134730, 0x4, 0xb49b50, 0x4)\r\n        C:/Users/User/gocode/src/github.com/thrasher-/gocryptotrader/routines.go:169 +0xf0\r\nmain.TickerUpdaterRoutine()\r\n        C:/Users/User/gocode/src/github.com/thrasher-/gocryptotrader/routines.go:215 +0x7d3\r\ncreated by main.main\r\n        C:/Users/User/gocode/src/github.com/thrasher-/gocryptotrader/main.go:129 +0xb12`\r\n\r\nHappy to make any adjustments in the front end if needed."}}
{"actor":{"display_login":"gloriousCode"}}