Constructor
new HttpServerGate()
- Source:
Parameters:
Name | Type | Description |
---|---|---|
options.port |
number
|
listen port |
options.host |
string
|
bind host |
Members
server
- Source:
Methods
close() → {Promise}
Close HTTP server
- Source:
Returns:
- Type:
-
Promise
- A promise that resolves server closed
(async) receive() → {Promise.<object>}
- Source:
Returns:
- Type:
-
Promise.<object>
- A promise that resolves the item when recevied