Merge pull request #4 from heinerlamprecht/issue/missing-cast-of-port-parameter
Make sure, the parameter "port" is always treated as a number.
This commit is contained in:
commit
63348cfd13
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cordova-plugin-socket-tcp",
|
"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.",
|
"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": {
|
"cordova": {
|
||||||
"platforms": [
|
"platforms": [
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
NSString *socketKey = [command.arguments objectAtIndex:0];
|
NSString *socketKey = [command.arguments objectAtIndex:0];
|
||||||
NSString *host = [command.arguments objectAtIndex:1];
|
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);
|
NSLog(@"[NATIVE] OPEN socket for port: %@", port);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user