-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parsing multiple web socket onMessage server responses from YAML conf…
…ig (#503)
- Loading branch information
1 parent
1f4a829
commit 43692a0
Showing
6 changed files
with
238 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/integrationTest/resources/json/response.5.external.file.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mango | ||
orange | ||
lemon | ||
watermelon | ||
honeydew |
33 changes: 33 additions & 0 deletions
33
src/integrationTest/resources/yaml/web-socket-valid-config-with-sequenced-responses.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
- web-socket: | ||
description: this is a web-socket config | ||
url: /items/fruits | ||
sub-protocols: echo, mamba, zumba | ||
|
||
on-open: | ||
policy: once | ||
message-type: text | ||
body: You have been successfully connected | ||
delay: 2000 | ||
|
||
on-message: | ||
- client-request: | ||
message-type: text | ||
body: Hey, server, give me fruits | ||
|
||
server-response: | ||
- policy: push | ||
message-type: text | ||
body: apple | ||
delay: 500 | ||
- policy: push | ||
message-type: text | ||
body: banana | ||
delay: 250 | ||
- policy: fragmentation | ||
message-type: binary | ||
file: ../json/response.5.external.file.json | ||
delay: 250 | ||
- policy: push | ||
message-type: text | ||
body: grapes | ||
delay: 500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.