Skip to content

Commit ffb8c40

Browse files
committed
add before-connect example
This includes the proposed change of behavior where the existing metadata is sent as part of the reg burst, instead of in response to CAP REQ.
1 parent d0a080f commit ffb8c40

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

extensions/metadata.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,35 @@ Twice:
706706

707707
-----
708708

709+
### Setting keys and subscribing with `before-connect`
710+
711+
C: CAP LS 302
712+
S: :metadata.test CAP * LS :batch message-tags draft/metadata-2=before-connect,max-subs=100,max-keys=100
713+
C: CAP REQ :batch message-tags draft/metadata-2
714+
S: :metadata.test CAP * ACK :batch message-tags draft/metadata-2
715+
C: METADATA * SUB display-name
716+
S: :metadata.test 770 * display-name
717+
C: METADATA * SET display-name :a b c
718+
S: :metadata.test 761 * * display-name * :a b c
719+
C: NICK abc
720+
C: USER u s e r
721+
C: CAP END
722+
S: :metadata.test 001 abc :Welcome to the MetadataTesting IRC Network abc
723+
S: [redacted registration burst messages]
724+
S: :metadata.test BATCH +1 metadata
725+
S: @batch=1 :metadata.test 761 abc abc display-name * :a b c
726+
S: :metadata.test BATCH -1
727+
S: [redacted registration burst messages]
728+
S: :metadata.test 376 abc :End of MOTD command
729+
C: METADATA * LIST
730+
S: :metadata.test BATCH +2 metadata
731+
S: @batch=2 :metadata.test 761 abc abc display-name * :a b c
732+
S: :metadata.test BATCH -2
733+
C: METADATA * SUBS
734+
S: :metadata.test 772 abc display-name
735+
736+
-----
737+
709738
### Non-normative examples
710739

711740
The following examples describe how an implementation might use certain features.

0 commit comments

Comments
 (0)