createServer
Marble.j abstraction over Node.js server creation with additional features.
Importing
Type declaration
Parameters
parameter
definition
config
CreateServerConfig
CreateServerConfig
parameter
definition
httpListener
HttpListener
port
<optional> number
hostname
<optional> string
event$
<optional> HttpServerEffect
options
<optional> ServerOptions
dependencies
<optional> Array<BoundDependency<any>>
Returns
parameter
definitoin
run
boolean? -> https.Server | http.Server
info
ServerInfo
server
https.Server | http.Server
ServerInfo
parameter
definitoin
routing
Array<RoutingItem>
Example
index.ts
Last updated