Issue 13: Added support for connect sequence timeout

Decreased the select timeout when reading headers
Don't call callback with DISCONNECTED if the connection was never connected
This commit is contained in:
JCash
2020-10-17 11:40:53 +02:00
parent 9d1ace0a82
commit e105702c79
4 changed files with 43 additions and 8 deletions

View File

@@ -17,6 +17,9 @@
type: table
desc: optional parameters as properties. The following parameters can be set
members:
- name: timeout
type: number
desc: Timeout for the connection sequence (milliseconds)
- name: callback
type: function