Constructor
new Connection(url, optionsopt)
    Creates a new instance of Connection.
    Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| url | String | The resource uri. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| options | Object | <optional> | The connection options. Properties
 | 
- Source:
Members
mimeType :String
    Gets the MIME type.
    Type:
- String
- Source:
Methods
_cleanupWebsocket()
    clean websocket context
- Source:
close() → {Promise}
    Closes the Connection.
- Source:
Returns:
- Type
- Promise
open() → {Promise}
    Opens the connection, if its not already opened.
- Source:
Returns:
- Type
- Promise
submit()
- Source: