{"action":"created","issue":{"url":"https://api.github.com/repos/labstack/echo/issues/757","repository_url":"https://api.github.com/repos/labstack/echo","labels_url":"https://api.github.com/repos/labstack/echo/issues/757/labels{/name}","comments_url":"https://api.github.com/repos/labstack/echo/issues/757/comments","events_url":"https://api.github.com/repos/labstack/echo/issues/757/events","html_url":"https://github.com/labstack/echo/issues/757","id":192518099,"number":757,"title":"How to integrate Echo with go-socket.io","user":{"login":"goldmoment","id":6092602,"avatar_url":"https://avatars.githubusercontent.com/u/6092602?v=3","gravatar_id":"","url":"https://api.github.com/users/goldmoment","html_url":"https://github.com/goldmoment","followers_url":"https://api.github.com/users/goldmoment/followers","following_url":"https://api.github.com/users/goldmoment/following{/other_user}","gists_url":"https://api.github.com/users/goldmoment/gists{/gist_id}","starred_url":"https://api.github.com/users/goldmoment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldmoment/subscriptions","organizations_url":"https://api.github.com/users/goldmoment/orgs","repos_url":"https://api.github.com/users/goldmoment/repos","events_url":"https://api.github.com/users/goldmoment/events{/privacy}","received_events_url":"https://api.github.com/users/goldmoment/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-30T09:40:36Z","updated_at":"2016-11-30T10:52:32Z","closed_at":null,"body":"I try to integrate Echo with https://github.com/googollee/go-socket.io but it don't work\r\nPlease help me to resolve\r\n\r\n```\r\nfunc Realtime(c echo.Context) error {\r\n\tserver, err := socketio.NewServer(nil)\r\n\tif err != nil {\r\n\t\tlog.Fatal(err)\r\n\t}\r\n\tserver.On(\"connection\", func(so socketio.Socket) {\r\n\t\tlog.Println(\"on connection\")\r\n\r\n\t\tso.Join(\"shop\")\r\n\r\n\t\tso.Emit(\"message\", \"hello\")\r\n\r\n\t\tso.On(\"message\", func(msg string) string {\r\n\t\t\tlog.Println(msg)\r\n\t\t\treturn \"recieved\"\r\n\t\t})\r\n\r\n\t\tso.On(\"disconnection\", func() {\r\n\t\t\tlog.Println(\"on disconnect\")\r\n\t\t})\r\n\t})\r\n\tserver.On(\"error\", func(so socketio.Socket, err error) {\r\n\t\tlog.Println(\"error:\", err)\r\n\t})\r\n\treturn nil\r\n}\r\n```\r\n\r\n```\r\n// WebSocket\r\ne := echo.New()\r\ne.GET(\"/socket.io/\", api.Realtime)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/labstack/echo/issues/comments/263843764","html_url":"https://github.com/labstack/echo/issues/757#issuecomment-263843764","issue_url":"https://api.github.com/repos/labstack/echo/issues/757","id":263843764,"user":{"login":"goldmoment","id":6092602,"avatar_url":"https://avatars.githubusercontent.com/u/6092602?v=3","gravatar_id":"","url":"https://api.github.com/users/goldmoment","html_url":"https://github.com/goldmoment","followers_url":"https://api.github.com/users/goldmoment/followers","following_url":"https://api.github.com/users/goldmoment/following{/other_user}","gists_url":"https://api.github.com/users/goldmoment/gists{/gist_id}","starred_url":"https://api.github.com/users/goldmoment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldmoment/subscriptions","organizations_url":"https://api.github.com/users/goldmoment/orgs","repos_url":"https://api.github.com/users/goldmoment/repos","events_url":"https://api.github.com/users/goldmoment/events{/privacy}","received_events_url":"https://api.github.com/users/goldmoment/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T10:52:32Z","updated_at":"2016-11-30T10:52:32Z","body":"Thanks @leedstyh. I got it"}}
{"actor":{"display_login":"goldmoment"}}