Added ability to connect by address and port

This commit is contained in:
Parnic
2018-03-31 11:24:37 -05:00
parent a9d638b26d
commit 7907430e95
2 changed files with 18 additions and 3 deletions

View File

@ -91,6 +91,15 @@ finder.on('serverFound', function(server) {
})
```
### constructor(port, address)
Port is an integer. Address is an IPv4 address of the server as a string.
Examples:
```javascript
var client = new ScreenLogic.UnitConnection(80, '10.0.0.85')
```
### connect()
Connects to the server passed to its constructor.