DEV Community

Daniel Schreiber
Daniel Schreiber

Posted on • Updated on

Testing STOMP websocket with Postman

With Postman v8 you can test Websockets - great! But..

When testing STOMP servers you will encounter a problem:

The body is then followed by the NULL octet.

See https://stomp.github.io/stomp-specification-1.2.html#STOMP_Frames

The only way (on windows) to get the NULL octet into the frame is by using the "binary/Base64" encoding (see screenshot below).

image

To easily convert the frame you can use Notepad++:

  1. Activate "Character Panel"
  2. Add "NULL" at the end of the frame (after all headers and body) - make sure to actually click on "NULL"
  3. Select complete frame and encode it to Base64

image

image

If you found an easier way, please comment!

Discussion (0)