OpenAPI Delphi Client Parser

The OpenAPI Specification, previously known as the Swagger Specification, is a specification for machine-readable interface files for describing, producing, consuming, and visualizing RESTful web services. Previously part of the Swagger framework, it became a separate project in 2016, overseen by the OpenAPI Initiative, an open-source collaboration...

Continue reading

ZLib 1.2.12 Delphi - CBuilder

sgcWebSockets uses ZLib for WebSocket Compression/Decompression. Recently Zlib has released a new version with fixes the following issues: Fix a deflate bug when using the Z_FIXED strategy that can result in out-of-bound accesses.Fix a deflate bug when the window is full in deflate_stored().Speed up CRC-32 computations by a factor of 1.5 to 3....

Continue reading

Pusher Cache Channels

From sgcWebSockets 2022.4.0 the Pusher Cache Channels are supported. Currently the following Cache channels are available: Public Cache ChannelsPrivate Cache ChannelsPresence Cache Channels Cache Channels  A cache channel remembers the last triggered event, and sends this as the first event to new subscribers. When an event is triggered on a c...

Continue reading

sgcWebSockets 2022.3.0

Rad Studio  Here is the comprehensive list of new features and bug fixes included in this version: [+] : New sgcWebSockets Package Installer, install and register sgcWebSockets Library. [+] : New IDE AddOn, allows to automatically login from Rad Studio IDE and access to private downloads, support, forum... and more. [+] : New Component OAuth2 ...

Continue reading

Authorization using External OAuth2 Providers

From sgcWebSockets 2022.3.0, you can use external OAuth2 Providers to Authenticate the Requests received by your server. The OAuth2 Server Provider Component allows to integrate External OAuth2 Providers (like Azure AD, Google, Facebook...) in your server component (like an HTP server), so an user can login using the Azure AD credentials and if the...

Continue reading

New sgcWebSockets Windows Installer

sgcWebSockets for Delphi or CBuilder now can be installed using a windows setup, this installer uses the fantastic Innosetup application. The installer copies the required files, build the packages, install the design-time package and register the required paths in the Rad Studio IDE. Installer Find below step by step how install the package (...

Continue reading

Telegram Sponsored Messages

From sgcWebSockets 2022.3.0, Sponsored Messages are supported. Sponsored Messages requires Telegram 1.8.0+, so the Telegram libraries have been updated to support this feature. Sponsored messages on Telegram are displayed in large public one-to-many channels with 1000+ subscribers and are limited to 160 characters. Sponsored Messages are based sole...

Continue reading

Delphi Kucoin Futures API Client

From sgcWebSockets 2022.3.0, Kucoin Futures API is supported. Kucoin is an international multi-language cryptocurrency exchange. It offers some APIs to access Kucoin data. The following APIs are supported: WebSocket streams: allows to subscribe to some methods and get data in real-time. Events are pushed to clients by server to subscribers. Us...

Continue reading

Delphi Kucoin API Client

From sgcWebSockets 2022.3.0, Kucoin API is supported. Currently the following APIs are implemented: WebSocket streams: allows to subscribe to some methods and get data in real-time. Events are pushed to clients by server to subscribers. Uses WebSocket as protocol.REST API: clients can request to server market and account data. Requires an API Key, ...

Continue reading

sgcWebSockets 2022.2.0

Rad Studio  Here is the comprehensive list of new features and bug fixes included in this version: [+] : Improved Amazon AWS IoT Client, SignatureV4 has a new property "OpenSSL_Options" which allows to configure the openSSL library options. [+] : Improved HTTP.SYS server, now THttpServerResponse has a new propery "FileName" where you can set t...

Continue reading

sgcWebSockets 2022.1.0

Rad Studio  Here is the comprehensive list of new features and bug fixes included in this version: [+] : New Component TsgcWSPClient_AMQP, implements AMQP 0.9.1 protocol. [+] : New Demo AMQP which shows how works AMQP client, it's located in "02.WebSocket_Protocols\10.AMQP_Client" folder. [+] : Improved BITMEX API Client, REST API is now suppo...

Continue reading

Binance.us API Delphi and .NET

From sgcWebSockets 2022.1, the Binance.us Servers are supported by our Binance API Client. The following APIs are supported: WebSocket streams: allows to subscribe to some methods and get data in real-time. Events are pushed to clients by server to subscribers. Uses WebSocket as protocol.UserData stream: subscribed clients get account details. Requ...

Continue reading

Bitmex Delphi Client Updated

From sgcWebSockets 2022.1, the Bitmex REST API is supported, this means that now you can place orders, cancel existing orders, get executions, position... and much more. Place Orders  The Bitmex REST API offer public and private endpoints. The Private endpoints requires that messages signed to increase the security of transactions. First you m...

Continue reading

AMQP Receive Messages (3 / 3)

AMQP allows to receive the messages in 2 modes: Request by Client: using the GetMessage method. If there aren't messages in the queue, the event OnAMQPBasicGetEmpty will be called.Pushed by Server: using the Consume method. Consume  Consumers consume from queues. In order to consume messages there has to be a queue. When a new consumer is adde...

Continue reading

AMQP Publish Messages (2 / 3)

The method PublishMessages is used to send a message to the AMQP server. AMQP Servers automatically bind the queues to "direct" exchange using the queue name as routing key. This allows to send a message to a specific queue without the need to declare a binding (just calling PublishMessage method and pasing the Exchange argument as empty value and ...

Continue reading

AMQP Exchanges and Queues (1 / 3)

From sgcWebSockets 2022.1 AMQP 0.9.1 protocol is supported. The Advanced Message Queuing Protocol (AMQP) is an open standard application layer protocol for message-oriented middleware. The defining features of AMQP are message orientation, queuing, routing (including point-to-point and publish-and-subscribe), reliability and security...

Continue reading

Telegram TDLib error: UPDATE_APP_TO_LOGIN

If you get the error code 406 "UPDATE_APP_TO_LOGIN", means that the TDLib version is outdated and must be updated to latest 1.7.9 version, the reason is that Telegram has migrate to 64-Bit identifiers and previous versions are not compatible, so it's not possible login with a phone (login with an existing account and QR code is still possible ...

Continue reading

Telegram Request Phone Number or Location

From sgcWebSockets 2022.1 the Telegram Client component is able to request the user the Phone Number or the location when has login as a bot. Find below an example code in Delphi, CBuilder and .NET Delphi Example  oReplyMarkup := TsgcTelegramReplyMarkupShowKeyboard.Create;Try oReplyMarkup.AddButtonTypeRequestPhoneNumber('Give me your phone'); ...

Continue reading

Pusher Custom Authentication

From sgcWebSockets 2022.1, the sgcWebSockets Pusher client allows to implement your own custom authentication. Pusher only allow subscribe to private or presence channels, if the connection provides an authentication token, this allows to restrict the access. You can build your own Authentication flow, using OnPusherAuthentication event, this event...

Continue reading

sgcWebSockets 4.5.4

Rad Studio  Here is the comprehensive list of new features and bug fixes included in sgcWebSockets 4.5.4: [+] : Improved TLSOptions.Version property, now if the value is tlsUndefined (the default), the client will try to negotiate all possible TLS versions (from TLS 1.3 to TLS 1.0), before this change the TLS 1.0 was selected. [+] : Improved A...

Continue reading