Update README.md
This commit is contained in:
@@ -62,7 +62,7 @@ stbbr_for("msg_21",
|
|||||||
### Verify sent stanzas
|
### Verify sent stanzas
|
||||||
To verify that you sent a particular stanza to Stabber:
|
To verify that you sent a particular stanza to Stabber:
|
||||||
```c
|
```c
|
||||||
stbbr_verify(
|
stbbr_received(
|
||||||
"<message id=\"msg24415\" to=\"buddy1@localhost/mobile\" type=\"chat\">"
|
"<message id=\"msg24415\" to=\"buddy1@localhost/mobile\" type=\"chat\">"
|
||||||
"<body>I know, its a test.</body>"
|
"<body>I know, its a test.</body>"
|
||||||
"</message>"
|
"</message>"
|
||||||
@@ -71,7 +71,7 @@ stbbr_verify(
|
|||||||
The above function returns 1 if the stanza has been received, and 0 if it hasn't.
|
The above function returns 1 if the stanza has been received, and 0 if it hasn't.
|
||||||
The following function check that it was specifically the last stanza received:
|
The following function check that it was specifically the last stanza received:
|
||||||
```c
|
```c
|
||||||
stbbr_verify_last(
|
stbbr_last_received(
|
||||||
"<message id=\"msg24415\" to=\"buddy1@localhost/mobile\" type=\"chat\">"
|
"<message id=\"msg24415\" to=\"buddy1@localhost/mobile\" type=\"chat\">"
|
||||||
"<body>I know, its a test.</body>"
|
"<body>I know, its a test.</body>"
|
||||||
"</message>"
|
"</message>"
|
||||||
@@ -79,7 +79,7 @@ stbbr_verify_last(
|
|||||||
```
|
```
|
||||||
Both verifications allow for wildcards (*) as attribute values, for example, if you don't know the id's that are generated by your client:
|
Both verifications allow for wildcards (*) as attribute values, for example, if you don't know the id's that are generated by your client:
|
||||||
```c
|
```c
|
||||||
stbbr_verify(
|
stbbr_received(
|
||||||
"<message id=\"*\" to=\"buddy1@localhost/mobile\" type=\"chat\">"
|
"<message id=\"*\" to=\"buddy1@localhost/mobile\" type=\"chat\">"
|
||||||
"<body>I know, its a test.</body>"
|
"<body>I know, its a test.</body>"
|
||||||
"</message>"
|
"</message>"
|
||||||
|
|||||||
Reference in New Issue
Block a user