tjs-w/go-proto-stomp

View on GitHub
pkg/stomp/testdata/frames.golden.txt

Summary

Maintainability
Test Coverage
CONNECT
accept-version:1.0,1.1,2.0
host:stomp.example.com
login:peter@parker.com
passcode:maryjane
heart-beat:0,0


---
STOMP
accept-version:1.0,1.1,2.0
host:stomp.example.com
login:peter@parker.com
passcode:maryjane
heart-beat:0,0


---
CONNECTED
version:1.1
server:Apache/1.3.9
session:78
heart-beat:0,0


---
ERROR
version:1.2,2.1
content-type:text/plain

Supported protocol versions are 1.2 2.1
---
SEND
destination:/queue/a
transaction:tx10
content-type:text/plain

hello queue a

---
SUBSCRIBE
id:0
destination:/queue/foo
ack:client


---
UNSUBSCRIBE
id:0


---
ACK
id:12345
transaction:tx1


---
NACK
id:12345
transaction:tx1


---
BEGIN
transaction:tx1


---
COMMIT
transaction:tx1


---
ABORT
transaction:tx1


---
DISCONNECT
receipt:77


---
RECEIPT
receipt-id:77


---
MESSAGE
subscription:0
message-id:007
destination:/queue/a
content-type:text/plain
ack:1

hello queue a
---
ERROR
receipt-id:message-12345
content-type:text/plain
content-length:170
message:malformed frame received

The message:
=====
MESSAGE
destined:/queue/a
receipt:message-12345

Hello queue a!
=====
Did not contain a destination header, which is REQUIRED
for message propagation.

---