Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • WebSocket API /

For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by lzhuang1 · Jul 29, 2019 at 02:29 PM · treprdp-apiwebsocketsrrto

How to clean streaming connection through websocket api

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by nick.zincone · Jul 29, 2019 at 02:57 PM

Hi @lzhuang1

If you mean by "clean streaming connection" is to close streaming subscriptions, you will need to issue a Close request. You can find more details within the documentation. Alternatively, you can disconnect your connection to the server. The server will no longer keep active streams open. However, if you are looking to "clean" you connection by disconnecting, then later wish to reopen new streams, you will of course need to reconnect.

Comment

People who like this

0 Show 7 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
lzhuang1 · Jul 29, 2019 at 06:59 PM 0
Share

Hi Nick, thanks for your prompt response! By saying "Close request" do you mean login close request? I don't want to logout though, what I want is keep the login state but just recall all streaming requests to save traffics, and I might resend a streaming request in the future if needed, is that possible? Many thanks!

avatar image
REFINITIV
nick.zincone ♦♦ lzhuang1 · Jul 29, 2019 at 08:09 PM 0
Share

Hi @lzhuang1,

What I mean by "Close request" is not the login request but rather a request to close an individual opened item stream. For example, once you have successfully logged in to the server, you begin to open streaming requests. At anytime, you can close one of these item requests - refer to the documentation link I provided above. You can reopen them at anytime. If you haven't already, I would encourage you to work through the Quick Start to gain a better understanding of the operation. I would then work through the tutorial section that provides a deeper understanding of the concepts. Within the tutorial section you will find some details related to Closing Event Streams.

avatar image
lzhuang1 nick.zincone ♦♦ · Jul 31, 2019 at 01:50 PM 0
Share

Hi @nick.zincone.1, thanks, I will take a look at the documentation. Another question, is there any problems with a long running stream request? I have to clean the requests because I found that if I have many streaming requests all of which are long-running (more than 24 hours), the responses will be stop at some point. Is there parameter in the request controls the lifetime of the streaming requests? Thank you!

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
7 People are following this question.

Related Questions

Not getting rate update message from Websocket Api java example after approx 9 minutes (using git web socket example)

How to make side menu work as accordion when click category display sub categories?

Can we expand the underlying RIC by chain RIC? (from WebSocket API Webinar Nov 29)

Websocket return code - Close market

Custom VWAP support

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • FX Venues
    • FX Trading – RFQ Maker
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • Yield Book Analytics
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges