KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Note: Visualize Real-Time Data with WebSocket Client & 4D View Pro
PRODUCT: 4D View Pro | VERSION: 19 R3 | PLATFORM: Mac & Win
Published On: January 23, 2024
This technical article is restricted to partners Only. Login with your Partner account to have full access to this article!!!
Log In


WebSocket technology allows clients to obtain the most up-to-date data from servers as they happen. With the release of v20 R3, developers can now create WebSocket clients from 4D and connect them to third-party WebSocket servers. This is especially useful for collecting real-time financial data such as stock trade or cryptocurrency exchange information from various outside sources. One of the best ways to visualize the fluctuation of such data would be in a dashboard created with 4D View Pro. This technical note will discuss how to set up a 4D WebSocket client to connect to and receive live data from an external Coinbase WebSocket server. Once connected and subscribed to a channel, real-time data will be fed into 4D from the external server. This technical note will then go over how to use 4D View Pro to programmatically create a live dashboard to visualize that data and its change over time.