Operator WebSocketSend

IBMStreams com.ibm.streamsx.inet Toolkit > com.ibm.streamsx.inet 2.9.6 > com.ibm.streamsx.inet.wsserver > WebSocketSend

Operator transmits tuples recieved on the input port via WebSocket protocol to connected clients.Upon startup, starts WebSocket Server. As tuple arrives on the input port they're converted intoJSON formatted messages and transmitted to all currently connected clients. Clients can connect and disconnect at anytime.

Summary

Ports
This operator has 1 input port and 0 output ports.
Windowing
This operator does not accept any windowing configurations.
Parameters
This operator supports 2 parameters.

Required: port

Optional: batchSize

Metrics
This operator reports 2 metrics.

Properties

Implementation
Java

Input Ports

Ports (0)

Port that clients connect to and tuples formatted as JSON message are transmitted over.

Properties

Parameters

This operator supports 2 parameters.

Required: port

Optional: batchSize

batchSize

Set the batch size.

Properties
port

Port that clients connect to and tuples formatted as JSON message are transmitted over.

Properties

Metrics

nClientsConnected - Gauge

Number of clients currently using WebSocket

nMessagesSent - Counter

Number of messages sent using WebSocket

Libraries

Operator class library
Library Path: ../../impl/lib/com.ibm.streamsx.inet.jar, ../../opt/wssupport/Java-WebSocket-1.3.0.jar