Builds a subscription request message as expected by the server via Websocket.
identifier to associate messages with responses.
name of request to build message for.
request message params.
subscription request message.
Builds a subscription stream param as expected by the server via Websocket.
name of stream to build params for.
subscription stream params.
Builds subscription messages as expected by the server to send over Websocket.
Example