{"action":"created","issue":{"url":"https://api.github.com/repos/tidwall/SwiftWebSocket/issues/31","repository_url":"https://api.github.com/repos/tidwall/SwiftWebSocket","labels_url":"https://api.github.com/repos/tidwall/SwiftWebSocket/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/tidwall/SwiftWebSocket/issues/31/comments","events_url":"https://api.github.com/repos/tidwall/SwiftWebSocket/issues/31/events","html_url":"https://github.com/tidwall/SwiftWebSocket/issues/31","id":131693781,"number":31,"title":"1007 invalid payload size for control frame","user":{"login":"akaabe","id":10127664,"avatar_url":"https://avatars.githubusercontent.com/u/10127664?v=3","gravatar_id":"","url":"https://api.github.com/users/akaabe","html_url":"https://github.com/akaabe","followers_url":"https://api.github.com/users/akaabe/followers","following_url":"https://api.github.com/users/akaabe/following{/other_user}","gists_url":"https://api.github.com/users/akaabe/gists{/gist_id}","starred_url":"https://api.github.com/users/akaabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaabe/subscriptions","organizations_url":"https://api.github.com/users/akaabe/orgs","repos_url":"https://api.github.com/users/akaabe/repos","events_url":"https://api.github.com/users/akaabe/events{/privacy}","received_events_url":"https://api.github.com/users/akaabe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-05T16:54:38Z","updated_at":"2016-02-05T17:42:07Z","closed_at":null,"body":"Getting such error on communication with server. Seems related to network issues (response form server is > 200msec). Connection is established but data from server is not returned via web socket. Wrong frame begins with byte 0x81"},"comment":{"url":"https://api.github.com/repos/tidwall/SwiftWebSocket/issues/comments/180461598","html_url":"https://github.com/tidwall/SwiftWebSocket/issues/31#issuecomment-180461598","issue_url":"https://api.github.com/repos/tidwall/SwiftWebSocket/issues/31","id":180461598,"user":{"login":"dru","id":5803,"avatar_url":"https://avatars.githubusercontent.com/u/5803?v=3","gravatar_id":"","url":"https://api.github.com/users/dru","html_url":"https://github.com/dru","followers_url":"https://api.github.com/users/dru/followers","following_url":"https://api.github.com/users/dru/following{/other_user}","gists_url":"https://api.github.com/users/dru/gists{/gist_id}","starred_url":"https://api.github.com/users/dru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dru/subscriptions","organizations_url":"https://api.github.com/users/dru/orgs","repos_url":"https://api.github.com/users/dru/repos","events_url":"https://api.github.com/users/dru/events{/privacy}","received_events_url":"https://api.github.com/users/dru/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T17:42:07Z","updated_at":"2016-02-05T17:42:07Z","body":"According to this reference http://www.tbray.org/drafts/wsock-00\r\n\r\n\"4.2.1.  Input Data Framing\r\n...\r\n Thus, a frame beginning with 0x81 0x82 0x83 0x04 has a length of (1 * 128 * 128) + (2 * 128) + 3, or 16643. The frame length applies only to the data which follows the encoding of the length.\r\n\r\nClients MUST read and ignore frames which begin with a length, and only process those which begin with 0x00.\r\n...\r\n\"\r\nbut in code looks like exception is thrown\r\nhttps://github.com/tidwall/SwiftWebSocket/blob/master/Source/WebSocket.swift#L260"}}