The Chat example shows how to use stomp.js to send and receive STOMP messages directly from the Web browser.

The WebWorker example uses a WebWorker instead to send and receive STOMP messages from the broker.