The WebSocket protocol specification defines two new URI schemes, ws: and wss:,[3] for unencrypted and encrypted connections respectively. Apart from the scheme name and fragment (# is not supported), the rest of the URI components are defined to use URI generic syntax.[4]