sendXtMessage usage
Posted: 21 Oct 2009, 03:25
Hi Guys,
Not sure if this is a bug or if I'm using this wrong. Anyways, when I use
I get a server error, however if I use it with type: @"str" it works but obviously I don't have access to returned values.
Also it cuts out the first letter of the returned _cmd somehow.
As mentioned in the bugs thread I believe it has something to do with the passed in paramObj being null.
So I tried the one below.
This works without the server throwing errors but it don't return nothing!
Basically I just want to send a cmd to the extension and get a return value object. Developing with the smart fox server iphone API has been a bloody nightmare with virtually no support and half cooked doc's after paying big bucks for the Enterprise server.
Can some one please help us?
Not sure if this is a bug or if I'm using this wrong. Anyways, when I use
Code: Select all
//This function basically returns start time object.
[smartFox sendXtMessage:@"timeEx" cmd:@"gst" paramObj:nil type: @"xml" roomId:1];
Also it cuts out the first letter of the returned _cmd somehow.
As mentioned in the bugs thread I believe it has something to do with the passed in paramObj being null.
So I tried the one below.
Code: Select all
NSDictionary *tmp_d = [NSDictionary dictionary];
[smartFox sendXtMessage:@"timeEx" cmd:@"gst" paramObj:tmp_d type: @"xml" roomId:1];
Basically I just want to send a cmd to the extension and get a return value object. Developing with the smart fox server iphone API has been a bloody nightmare with virtually no support and half cooked doc's after paying big bucks for the Enterprise server.
Can some one please help us?