{"action":"created","issue":{"url":"https://api.github.com/repos/voryx/Thruway/issues/194","repository_url":"https://api.github.com/repos/voryx/Thruway","labels_url":"https://api.github.com/repos/voryx/Thruway/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/voryx/Thruway/issues/194/comments","events_url":"https://api.github.com/repos/voryx/Thruway/issues/194/events","html_url":"https://github.com/voryx/Thruway/issues/194","id":150657516,"number":194,"title":"Disconnect issue while using MDWamp client library","user":{"login":"zarv1k","id":6296643,"avatar_url":"https://avatars.githubusercontent.com/u/6296643?v=3","gravatar_id":"","url":"https://api.github.com/users/zarv1k","html_url":"https://github.com/zarv1k","followers_url":"https://api.github.com/users/zarv1k/followers","following_url":"https://api.github.com/users/zarv1k/following{/other_user}","gists_url":"https://api.github.com/users/zarv1k/gists{/gist_id}","starred_url":"https://api.github.com/users/zarv1k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zarv1k/subscriptions","organizations_url":"https://api.github.com/users/zarv1k/orgs","repos_url":"https://api.github.com/users/zarv1k/repos","events_url":"https://api.github.com/users/zarv1k/events{/privacy}","received_events_url":"https://api.github.com/users/zarv1k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-24T12:34:08Z","updated_at":"2016-04-24T14:12:21Z","closed_at":null,"body":"Can you please help me to determine why I get an assertion error while using Thruway WAMP router with [MDWamp](https://github.com/mogui/MDWamp) client library on disconnect. I even do not understand is this issue related to MDWamp library or Thruway router library. Thats why I created the ticket here and I'll create [the ticket](https://github.com/mogui/MDWamp/issues/46) in MDWamp client repo too. It is also possible that the issue I have experiencing is related with incorrect low level protocol implementation in server-side/client websocket library that Thruway/MDWamp (Ratchet/SocketRocket) uses, but I have no appropriate skills to determine what is wrong in this case.\r\n\r\nFor explain the issue in simple way I just created the simple iOS app that you can run and start to debug. Here is the [repo](https://github.com/zarv1k/test-mdwamp-thruway) that contains iOS workspace sources, the latest thruway router sources. It also contain crossbar router config.json with same simple router configuration.\r\n\r\nWhen I use thruway router and I call mdwap.disconnect() I got assertion fail error:\r\n`Assertion failed: (mapped_size >= sizeof(_currentReadMaskOffset) + offset), function __33-[SRWebSocket _readFrameContinue]_block_invoke_2, file /Test MDWamp with Thruway Router/Pods/SocketRocket/SocketRocket/SRWebSocket.m, line 1128.`\r\n\r\nWhen I use crossbar router there is no such issue.\r\n\r\nHowever I tried to use both Thruway and Crossbar routers in my web app using 'angular-wamp' library on client side and there are no any issues on disconnect while using either Thruway or Crossbar router.\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/voryx/Thruway/issues/comments/213964376","html_url":"https://github.com/voryx/Thruway/issues/194#issuecomment-213964376","issue_url":"https://api.github.com/repos/voryx/Thruway/issues/194","id":213964376,"user":{"login":"mbonneau","id":748287,"avatar_url":"https://avatars.githubusercontent.com/u/748287?v=3","gravatar_id":"","url":"https://api.github.com/users/mbonneau","html_url":"https://github.com/mbonneau","followers_url":"https://api.github.com/users/mbonneau/followers","following_url":"https://api.github.com/users/mbonneau/following{/other_user}","gists_url":"https://api.github.com/users/mbonneau/gists{/gist_id}","starred_url":"https://api.github.com/users/mbonneau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbonneau/subscriptions","organizations_url":"https://api.github.com/users/mbonneau/orgs","repos_url":"https://api.github.com/users/mbonneau/repos","events_url":"https://api.github.com/users/mbonneau/events{/privacy}","received_events_url":"https://api.github.com/users/mbonneau/received_events","type":"User","site_admin":false},"created_at":"2016-04-24T14:12:21Z","updated_at":"2016-04-24T14:12:21Z","body":"Hi @oberstet - Ratchet does use the Autobahn testsuite (thank you by the way - it is great).\r\n\r\nRatchet 0.3 does not support binary, nor does Thruway. The next release of Ratchet (which is pretty close) will have binary support and will allow us to use more serializations with Websockets. As of right now, Thruway only supports raw socket and web socket with JSON serialization.\r\n\r\n@zarv1k - I have not used the MDWamp client with Thruway, but if it supports Websockets with JSON serialization it should work. When I have some time I will test this."}}