Rump-iOS是iOS设备的Rump客户端。有关Rump的更多信息,请参阅:https://github.com/raimohanska/rump
实现RumpDelegate方法以接收来自Rump服务器的响应通知。
-(void)connectedWith:(NSSet*)others {
...
}
-(void)onNoMatch {
...
}
-(void)onFailedWithError:(NSError*)error {
...
}
使用Rump
CLLocationCoordinate2D loc = ...
Rump* rump = [[Rump alloc]initWithBaseUrl:[NSURL URLWithString:@"http://rump.domain.com/demo"] user:@"user" nickname:@"John Doe" delegate:self];
[rump rumpInLocation:loc];