mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-16 00:00:02 +01:00
22 lines
372 B
Markdown
22 lines
372 B
Markdown
|
# WebSocket {#websocket}
|
||
|
|
||
|
The `websocket` node type spawns a HTTP / WebSocket server.
|
||
|
|
||
|
## Configuration
|
||
|
|
||
|
There is no node specific configuration.
|
||
|
|
||
|
### Example
|
||
|
|
||
|
nodes = {
|
||
|
ws = {
|
||
|
type = "websocket"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
http = {
|
||
|
port = 8080;
|
||
|
htdocs = "/opt/s2ss/contrib/websocket/";
|
||
|
ssl_cert = "/etc/ssl/certs/mycert.pem";
|
||
|
ssl_private_key= "/etc/ssl/private/mykey.pem";
|
||
|
}
|