Information about a target.
new ConnectionInfo(
url:string):ConnectionInfo
| Parameter | Type |
|---|---|
url |
string |
get host():
string
string
set host(
value:string):void
| Parameter | Type |
|---|---|
value |
string |
void
get port():
number
number
set port(
value:number):void
| Parameter | Type |
|---|---|
value |
number |
void
get sni():
string|undefined
string | undefined
set sni(
value:string|null):void
| Parameter | Type |
|---|---|
value |
string | null |
void
get tls():
boolean
boolean
set tls(
value:boolean):void
| Parameter | Type |
|---|---|
value |
boolean |
void
Connection =
object
A TCP connection.
receive(
size?:number):Promise<Uint8Array>
| Parameter | Type |
|---|---|
size? |
number |
Promise<Uint8Array>
send(
bytes:Bytes):Promise<void>
| Parameter | Type |
|---|---|
bytes |
Bytes |
Promise<void>
NetSDK =
object
The SDK for the Net service.
connect(
info:ConnectionInfo):Promise<Connection>
| Parameter | Type |
|---|---|
info |
ConnectionInfo |
Promise<Connection>
connect(
url:string):Promise<Connection>
| Parameter | Type |
|---|---|
url |
string |
Promise<Connection>