Make sure, the parameter "port" is always treated as a number.
This commit is contained in:
parent
0458b947ce
commit
2c8bd503fc
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cordova-plugin-socket-tcp",
|
||||
"version": "1.6.0",
|
||||
"version": "1.6.1",
|
||||
"description": "This Cordova plugin provides JavaScript API, that allows you to communicate with server through TCP protocol. Currently we support these platforms: iOS, Android, WP8.",
|
||||
"cordova": {
|
||||
"platforms": [
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
NSString *socketKey = [command.arguments objectAtIndex:0];
|
||||
NSString *host = [command.arguments objectAtIndex:1];
|
||||
NSNumber *port = [command.arguments objectAtIndex:2];
|
||||
NSNumber *port = [NSNumber numberWithInteger:[[command.arguments objectAtIndex:2] integerValue]];
|
||||
|
||||
NSLog(@"[NATIVE] OPEN socket for port: %@", port);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user