I’m trying to implement a textchat client on IOS device.
I found the library Midnightcoder Comm Lib IOS which allow me to connect to the server and use shared object and invoke server side command.
I manage to connect to the server but i’m when i try to invoke the addmessage function from the server side. I think i might have a problems with the parameters of the function.
On my server the function is :
public void addMessage(IClient client, RequestFunction function, AMFDataList params)
My working flash client use the following method to invoke the function :
ncchat.call("addMessage", null, chatSharedObjectName, chatMessage)
My first problem is that i don’t understand the argument of my call function on my flash client. Where are the IClient client and RequestFunction function?
On my IOS client i tried this (the syntax is almost the same than the example given in the library except that they only use one argument :
NSString *method = @"addMessage"; NSMutableArray *args = [NSMutableArray array]; [args addObject:@"textchat"]; [args addObject:message]; [socket invoke:method withArgs:args];
Does anybody knows how the solve my invokation problem or how to implement the textchat on ios?