Nethravathitcs / unitt

Automatically exported from code.google.com/p/unitt
0 stars 0 forks source link

UnittWebSocketClient send & receive #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Use sendText and sendBinary.
I get this error when I try to send message.

-----
2011-06-26 03:10:28.351 testApp[14510:207] -[WebSocket sendText:]: unrecognized 
selector sent to instance 0x4e296f0
2011-06-26 03:10:28.354 testApp[14510:207] *** Terminating app due to uncaught 
exception 'NSInvalidArgumentException', reason: '-[WebSocket sendText:]: 
unrecognized selector sent to instance 0x4e296f0'
-----

And more Don't work didReceiveTextMessage, didReceiveBinaryMessage too.

but change is...
-(void) didReceiveMessage:(NSString *) aMessage

receved ok.

Original issue reported on code.google.com by mizotata...@gmail.com on 25 Jun 2011 at 6:28

GoogleCodeExporter commented 8 years ago
If you are using WebSocket00.h, the spec at that time was unclear on how binary 
would be handled. Therefore, it just has didReceiveMessage instead of 
didReceiveTextMessage or didReceiveBinaryMessage. It also simply has a send 
instead of sendBinary or sendText. The 07 version of the specification does a 
good job of supporting text -vs- binary, so the WebSocket07.h has the binary 
and text versions of those methods. I will add more detail to the wiki to make 
this clear. Does that address your issue?

Original comment by joshuadmorris@gmail.com on 25 Jun 2011 at 9:56

GoogleCodeExporter commented 8 years ago
Try the new v2.2 build. It should address your issue.

Original comment by joshuadmorris@gmail.com on 28 Jun 2011 at 2:52

GoogleCodeExporter commented 8 years ago

Original comment by joshuadmorris@gmail.com on 28 Jun 2011 at 2:53

GoogleCodeExporter commented 8 years ago
I have verified this in the current build, so I am going to mark it as 
verified. Feel free to open a new issue if you are still experiencing the issue.

Original comment by joshuadmorris@gmail.com on 6 Jul 2011 at 3:12