V2Fly.orgV2Fly.org
Quick Start
Config Reference
Config Reference (v5, WIP)
Tools
Developer Guide
New concise guide
  • 简体中文
  • English
GitHub
Quick Start
Config Reference
Config Reference (v5, WIP)
Tools
Developer Guide
New concise guide
  • 简体中文
  • English
GitHub
  • Config Reference

    • Configuration File Format (Draft)
    • Inbounds
    • Outbounds
    • Proxy Protocol
    • Stream
    • Service
    • DNS
    • Router
    • Geo
  • Proxy Protocol

    • Blackhole
    • DNS
    • Dokodemo
    • Freedom
    • HTTP
    • Socks
    • VMess
    • VLite
    • Shadowsocks
    • Shadowsocks2022
    • Trojan
    • Hysteria2
    • VLESS
    • Loopback
  • Stream Transport Protocol

    • TCP
    • WebSocket
      • WebSocket Stream
      • Header
    • KCP(mKCP)
    • gRPC
    • QUIC
    • Meek
    • HTTPUpgrade
    • Hysteria2
    • mekya
  • Service

    • Stats
    • Policy
    • Browser Forwarder
    • Burst Observatory
    • Background Observatory
    • Tun
    • Subscription Manager
    • File System Storage

WebSocket

WebSocket Stream

  • Name: ws
  • Type: Transport Protocol
  • ID: stream.ws

path: string

The HTTP path for the websocket request. Empty value means root(/).

maxEarlyData: number

The max number of bytes of early data.

useBrowserForwarding: true | false

Whether to enable browser forwarder.

earlyDataHeaderName: string

The header name for WebSocket Early Data. If not set, the early data will be send through path.

'header': [ Header ]

The header to be sent in HTTP request.

Header

'key' : string

The HTTP header key.

'value' : string

The HTTP header value.

Edit this page on GitHub
Last Updated:
Contributors: Shelikhoo, Arınç ÜNAL
Prev
TCP
Next
KCP(mKCP)