sgcWebSockets 4.2.5

Bitstamp API has updated lo latest version.

 

Changes included

 [+] : New Event AfterConnect in TsgcWSAPI_SocketIO, this event is called after socket.io connection is successful and client can send messages to server.

 [+] : New Property Socket.IO Polling in TsgcWSAPI_SocketIO, disabling this property, client will connect directly to server using websocket as transport.

 [+] : Updated Bitstamp API to version 2.

 [+] : New Event OnCommandRequest on TsgcWSHTTPWebBrokerBridgeServer component, when server gets a new http request, this event is called and here you can customize http response.

 [+] : New Property ClearReceivedStreamsOnDisconnect on Files Protocol, if disabled, when reconnects, try to resume file download for qosLevel2.

 [+] : New Property ClearSentStreamsOnDisconnect on Files Protocol, if disabled, when reconnects, try to resume file upload for qosLevel2.

 [+] : New Property TCPEndOfFrameScanBuffer in TsgcWSConnection class, allows to define which method use to find end of message.

eofScanNone: every time a new packet arrive, OnBinary event is called.

eofScanLatestBytes: if latest bytes are equal to bytes added with AddTCPEndOfFrame method, OnBinary message is called, otherwise this packet is buffered

eofScanAllBytes: search in all packet if find bytes equal to bytes added with AddTCPEndOfFrame method. If true, OnBinary message is called, otherwise this packet is buffered

 [+] : New Method AddTCPEndOfFrame in TsgcWSConnection class, if connection is plain TCP, allows to set which byte/s define the end of message. Message is buffered till is received completely.

 [+] : Updated File Protocol, now SendFile/BroadcastFile accepts FileId as parameter, if FileId is blank, will work as before, value will be assigned automatically.

 

 [*] : Fixed Bug Server Protocol searching channel subscriptions when channel is empty.

 [*] : Fixed Bug WriteAndWaitData method, doesn't wait in Android and iOS.

 [*] : Fixed Bug Ping with Timeout, doesn't wait in Android and iOS.

 [*] : Fixed Bug Connect method for client component, doesn't wait in Android and iOS.

 [*] : Fixed Bug Disconnect method for client component, doesn't wait in Android and iOS.

 [*] : Fixed Bug Internal Timer for QoS Level2, doesn't work after a reconnect.

 [*] : Fixed Bug Socket.IO client, if Heartbeat enabled and timeout > 0, connection always disconnect after timeout.

 [*] : Fixed Bug Server File Protocol, property files doesn't read assigned values and always use default.

 [*] : Fixed Bug File Protocol, if sending a file using qosLevel2, there was a disconnection, after reconnect, process won't continue.

 [*] : Fixed Bug MQTT Protocol decoding QoS for Publish messages.

 [*] : Fixed Bug MQTT Protocol reading Packet Identifier for Publish messages.

 [*] : Fixed Bug MQTT Protocol writing Packet Identifier when was greater than 255.

 [*] : Fixed Bug TsgcWebSocketServer_HTTPAPI, when a client send a POST method, content property was empty.

 [*] : Fixed Bug Detecting HTTP POST Header when version is 1.0.

 [*] : Fixed Bug Detecting WebSocket Header when client sends a POST with websocket headers.

 [*] : Fixed Bug during HTTP negotiation for BITTREX Component, now requires TLS 1.2 to connect to server.

 [*] : Fixed Bug SignalR API component, now HTTP negotiation takes TLS version from TLSOptions of TsgcWebSocketClient component.

 [*] : Fixed Bug CBuilder reading CleanDisconnect property, now this property is public instead of published for CBuilder.

 [*] : Fixed Bug File Server Protocol calling BroadcastFile method (abstract error) when HTTP API Server is attached.

 [*] : Fixed Bug File Server Protocol, list index out of bounds processing acknowledgment.