Skip to content

Overview

Concepts and Principles

Development

Overview

IDEs

API Explorer

Releases

Release Notes

TORO Integrate

Coder Studio

Coder Cloud

Bug Reports

Search

Web Socket Methods

Web Socket Methods are one-liners mainly for sending web socket message. To view the javadocs go here

These are the different ways of using the Web Socket methods:

Using Gloovy Step web socket method using gloovy step

Using Invoke Code Step web socket method using invoke step

Using Gloovy web socket method using gloovy step on coder

Using Invoke Code Step web socket method using invoke step on coder

1
2
3
4
5
6
7
8
// Sends the message "hello world" to the topic://websocket.sample
"/topic/websocket/sample".sendWSMessage( "hello world" )

//Creates a Map for the headers that are to be included when sending a web socket message
def headers = ["username" : "your-user-name", "password" : "your-password"]

// Sends the message "hello world" to the topic://websocket.sample with the header values
"/topic/websocket/sample".sendWSMessage( "hello world" , headers )