{"action":"created","issue":{"url":"https://api.github.com/repos/sta/websocket-sharp/issues/300","repository_url":"https://api.github.com/repos/sta/websocket-sharp","labels_url":"https://api.github.com/repos/sta/websocket-sharp/issues/300/labels{/name}","comments_url":"https://api.github.com/repos/sta/websocket-sharp/issues/300/comments","events_url":"https://api.github.com/repos/sta/websocket-sharp/issues/300/events","html_url":"https://github.com/sta/websocket-sharp/issues/300","id":178374646,"number":300,"title":"Parsing MessageEventArgs e.Data","user":{"login":"haraldini","id":5539007,"avatar_url":"https://avatars.githubusercontent.com/u/5539007?v=3","gravatar_id":"","url":"https://api.github.com/users/haraldini","html_url":"https://github.com/haraldini","followers_url":"https://api.github.com/users/haraldini/followers","following_url":"https://api.github.com/users/haraldini/following{/other_user}","gists_url":"https://api.github.com/users/haraldini/gists{/gist_id}","starred_url":"https://api.github.com/users/haraldini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haraldini/subscriptions","organizations_url":"https://api.github.com/users/haraldini/orgs","repos_url":"https://api.github.com/users/haraldini/repos","events_url":"https://api.github.com/users/haraldini/events{/privacy}","received_events_url":"https://api.github.com/users/haraldini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-21T15:05:06Z","updated_at":"2016-11-20T09:17:26Z","closed_at":null,"body":"Hi,\n\nI can sucessfully receive messages from socket.io running on node into a Unity app.\n`io.send(\"echo\")`\n\nUnity however is receiving an nonstandard format that can't be parsed into JSON.\n`42[\"message\",\"echo\"]`\n\nIs there an easy way to parse this into a valid JSON object?\n"},"comment":{"url":"https://api.github.com/repos/sta/websocket-sharp/issues/comments/261767381","html_url":"https://github.com/sta/websocket-sharp/issues/300#issuecomment-261767381","issue_url":"https://api.github.com/repos/sta/websocket-sharp/issues/300","id":261767381,"user":{"login":"http91","id":5920228,"avatar_url":"https://avatars.githubusercontent.com/u/5920228?v=3","gravatar_id":"","url":"https://api.github.com/users/http91","html_url":"https://github.com/http91","followers_url":"https://api.github.com/users/http91/followers","following_url":"https://api.github.com/users/http91/following{/other_user}","gists_url":"https://api.github.com/users/http91/gists{/gist_id}","starred_url":"https://api.github.com/users/http91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/http91/subscriptions","organizations_url":"https://api.github.com/users/http91/orgs","repos_url":"https://api.github.com/users/http91/repos","events_url":"https://api.github.com/users/http91/events{/privacy}","received_events_url":"https://api.github.com/users/http91/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T09:17:26Z","updated_at":"2016-11-20T09:17:26Z","body":"I have the same problem.\r\n\r\nNode.js\r\n\r\n```\r\nvar car = {\r\n  type: \"Fiat\",\r\n  model: \"500\",\r\n  color: \"white\"\r\n};\r\n\r\nio.emit(\"message\",car);\r\n```\r\n\r\nC#\r\n\r\n```\r\nusing System;\r\nusing System.Linq;\r\nusing WebSocketSharp;\r\n\r\nnamespace Example\r\n{\r\n\tpublic class Program\r\n\t{\r\n\t\tpublic static void Main(string[] args)\r\n\t\t{\r\n\t\t\tusing (var ws = new WebSocket(\"ws://localhost/socket.io/?EIO=2&transport=websocket\"))\r\n\t\t\t{\r\n\t\t\t\tws.OnMessage += (sender, e) =>\r\n\t\t\t\tConsole.WriteLine(e.Data);\r\n\t\t\t\tConsole.ReadKey();\r\n\t\t\t\tws.Connect();\r\n\t\t\t\tConsole.ReadKey(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\nOutput\r\n\r\n```\r\n0{\"sid\":\"Cq2uNeC5L5hTPJkcAAAM\",\"upgrades\": ],\"pingInterval\":25000,\"pingTimeout\":60000}\r\n40\r\n42 {\"type\":\"Fiat\",\"model\":\"500\",\"color\":\"white\"}]\r\n```"}}
{"actor":{"display_login":"http91"}}