Skip to content

WebSocketUri

hfuj13 edited this page Sep 10, 2022 · 4 revisions

WebSocketUri ::= "ws://" address (":" port)? path? query?
address ::= hostname | IPv4_dot_decimal | IPv6_colon_hex
port is the port number.
path is URL path that is starting "/". e.g. "/aa/bb/cc"
query is URL query that is staring "?". e.g. "?aa=12&bb=xyz"

For example
ws://aa.bb.cc.dd aa.bb.cc.dd is a host name and/or a domain name. This pattern is that use each IPv4 and IPv6.
ws://aa.bb.cc.dd:8080 Specify port numbers to bind to, using IPv4 and IPv6
ws://10.20.30.40 This pattern is that use only IPv4
ws://10.20.30.40:8080 Specify port number to bind, use IPv4 only
ws://0.0.0.0 This pattern is that use IPv4 any address
ws://127.0.0.1 This pattern is that use only IPv4 loopback address
ws://2001::40 This pattern is that use only IPv6
ws://[2001::300:40]:8080 Specifies a port number to bind and uses IPv6 only
ws://::0 This pattern is that use IPv6 any address
ws://::1 This pattern is that use only IPv6 loopback address
Clone this wiki locally