Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

Latest commit

 

History

History
67 lines (57 loc) · 1 KB

ws.md

File metadata and controls

67 lines (57 loc) · 1 KB

WebSocket

WebSocket is established on top of an underlying connection, which could be TCP, UDS, or TLS.

position

endpoint->listen|remote->trans->ws

options

path: string

no default value

example

Also See: TLS

ws over tcp

"remote": {
    "addr": "127.0.0.1:5000",
    "net": "tcp",
    "trans": {
        "proto": "ws",
        "path": "/test"
    }
}
"listen": {
    "addr": "127.0.0.1:5000",
    "net": "tcp",
    "trans": {
        "proto": "ws",
        "path": "/test"
    }
}

ws over uds

"remote": {
    "addr": "127.0.0.1:5000",
    "net": "uds",
    "trans": {
        "proto": "ws",
        "path": "/test"
    }
}

ws over tls

"remote": {
    "addr": "127.0.0.1:5000",
    "net": "tcp",
    "trans": {
        "proto": "ws",
        "path": "/test"
    },
    "tls": {
        // more details: docs/tls.md
        "skip_verify": true
    }
}