Skip to content

Commit df7638e

Browse files
author
Vincent Raman
committed
Adapt IOS example to ack change
1 parent b0131a4 commit df7638e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/iOS/SioChatDemo/SioChatDemo/CRViewController.mm

+6-6
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ -(void) updateUser:(NSString*)user count:(NSInteger) num joinOrLeft:(BOOL) isJoi
6969

7070
using namespace sio;
7171

72-
void OnNewMessage(CFTypeRef ctrl,string const& name,sio::message::ptr const& data,bool needACK,sio::message::ptr ackResp)
72+
void OnNewMessage(CFTypeRef ctrl,string const& name,sio::message::ptr const& data,bool needACK,sio::message::list ackResp)
7373
{
7474
if(data->get_flag() == message::flag_object)
7575
{
@@ -82,7 +82,7 @@ void OnNewMessage(CFTypeRef ctrl,string const& name,sio::message::ptr const& dat
8282

8383
}
8484

85-
void OnTyping(CFTypeRef ctrl,string const& name,sio::message::ptr const& data,bool needACK,sio::message::ptr ackResp)
85+
void OnTyping(CFTypeRef ctrl,string const& name,sio::message::ptr const& data,bool needACK,sio::message::list ackResp)
8686
{
8787
if(data->get_flag() == message::flag_object)
8888
{
@@ -93,7 +93,7 @@ void OnTyping(CFTypeRef ctrl,string const& name,sio::message::ptr const& data,bo
9393
}
9494
}
9595

96-
void OnStopTyping(CFTypeRef ctrl,string const& name,sio::message::ptr const& data,bool needACK,sio::message::ptr ackResp)
96+
void OnStopTyping(CFTypeRef ctrl,string const& name,sio::message::ptr const& data,bool needACK,sio::message::list ackResp)
9797
{
9898
if(data->get_flag() == message::flag_object)
9999
{
@@ -104,7 +104,7 @@ void OnStopTyping(CFTypeRef ctrl,string const& name,sio::message::ptr const& dat
104104
}
105105
}
106106

107-
void OnUserJoined(CFTypeRef ctrl, string const& name, sio::message::ptr const& data, bool needACK, sio::message::ptr ackResp)
107+
void OnUserJoined(CFTypeRef ctrl, string const& name, sio::message::ptr const& data, bool needACK, sio::message::list ackResp)
108108
{
109109
if(data->get_flag() == message::flag_object)
110110
{
@@ -116,7 +116,7 @@ void OnUserJoined(CFTypeRef ctrl, string const& name, sio::message::ptr const& d
116116
}
117117
}
118118

119-
void OnUserLeft(CFTypeRef ctrl, string const& name, sio::message::ptr const& data, bool needACK, sio::message::ptr ackResp)
119+
void OnUserLeft(CFTypeRef ctrl, string const& name, sio::message::ptr const& data, bool needACK, sio::message::list ackResp)
120120
{
121121
if(data->get_flag() == message::flag_object)
122122
{
@@ -129,7 +129,7 @@ void OnUserLeft(CFTypeRef ctrl, string const& name, sio::message::ptr const& dat
129129
}
130130

131131

132-
void OnLogin(CFTypeRef ctrl, string const& name, sio::message::ptr const& data, bool needACK, sio::message::ptr ackResp)
132+
void OnLogin(CFTypeRef ctrl, string const& name, sio::message::ptr const& data, bool needACK, sio::message::list ackResp)
133133
{
134134
if(data->get_flag() == message::flag_object)
135135
{

0 commit comments

Comments
 (0)