Skip to content

Releases: 1c3t3a/rust-socketio

v0.3.0-alpha.2

14 Oct 14:41
Compare
Choose a tag to compare
v0.3.0-alpha.2 Pre-release
Pre-release

Changes

  • Rename Socket to Client and SocketBuilder to ClientBuilder

  • Removed headermap from pub use, internal type only

  • Deprecations:

    • crate::payload (use crate::Payload instead)
    • crate::error (use crate::Error instead)
    • crate::event (use crate::Event instead)

v0.3.0-alpha.1

23 Sep 13:10
c2e466f
Compare
Choose a tag to compare
v0.3.0-alpha.1 Pre-release
Pre-release

Changes

  • Refactored Errors
    • Renamed EmptyPacket to EmptyPacket()
    • Renamed IncompletePacket to IncompletePacket()
    • Renamed InvalidPacket to InvalidPacket()
    • Renamed Utf8Error to InvalidUtf8()
    • Renamed Base64Error to InvalidBase64
    • Renamed InvalidUrl to InvalidUrlScheme
    • Renamed ReqwestError to IncompleteResponseFromReqwest
    • Renamed HttpError to IncompleteHttp
    • Renamed HandshakeError to InvalidHandshake
    • Renamed ActionBeforeOpen to IllegalActionBeforeOpen()
    • Renamed DidNotReceiveProperAck to MissingAck
    • Renamed PoisonedLockError to InvalidPoisonedLock
    • Renamed FromWebsocketError to IncompleteResponseFromWebsocket
    • Renamed FromWebsocketParseError to InvalidWebsocketURL
    • Renamed FromIoError to IncompleteIo
    • New error type InvalidUrl(UrlParseError)
    • New error type InvalidInteger(ParseIntError)
    • New error type IncompleteResponseFromEngineIo(rust_engineio::Error)
    • New error type InvalidAttachmentPacketType(u8)
    • Removed EmptyPacket
  • Refactored Packet
    • Renamed encode to From<&Packet>
    • Renamed decode to TryFrom<&Bytes>
    • Renamed attachments to attachments_count
    • New struct member attachments: Option<Vec>
  • Refactor PacketId
    • Renamed u8_to_packet_id to TryFrom for PacketId
  • Refactored SocketBuilder
    • Renamed set_namespace to namespace
    • Renamed set_tls_config to tls_config
    • Renamed set_opening_header to opening_header
    • namespace returns Self rather than Result
    • opening_header accepts a Into rather than HeaderValue
  • Allows for pure websocket connections
  • Refactor EngineIO module

v0.2.4

25 May 18:01
Compare
Choose a tag to compare

Changes

  • Fixed a bug that prevented the client from receiving data for a message event issued on the server.

v0.2.3

24 May 07:16
6ced1f3
Compare
Choose a tag to compare

Changes

  • Added a disconnect method to the Socket struct as requested in #43.

v0.2.2

13 May 16:53
Compare
Choose a tag to compare

Changes

  • Added websocket communication over TLS when either wss, or https are specified in the URL.
  • Added the ability to configure the TLS connection by providing an own TLSConnector.
  • Added the ability to set custom headers as requested in #35.

v0.2.1

27 Apr 09:54
Compare
Choose a tag to compare

Changes

  • Corrected memory odering issues which might have become an issue on certain platforms.
  • Added a CHANGELOG to keep track of all changes. The CHANGELOG goes back to the first, initial version.
  • Small stylistic changes to the codebase in general.

v0.2.0

13 Mar 11:46
Compare
Choose a tag to compare

This release introduces a lot of changes to the library. First of all, the crate got rewritten into sync rust and therefore removed all async code and dependencies. Building up on the sync code, the missing socket.io features where implemented:

  • Support for websockets. Generally this library tries to connect via websocket as often as possible, only if the server doesn't mention web sockets or the update process fails, long-polling is used.
  • Support for binary payloads. This introduces a new Payload type which represents all the interaction with some sort of payload.
  • This release adds a SocketBuilder struct which helps to set up and configure a `Socket.

Updated documentation can be found up on docs.rs

v0.1.1

10 Jan 11:24
Compare
Choose a tag to compare
  • Update to Tokio 1.0
  • Therefore updating request to 0.11.0
  • Removed last bits of unsafe code

v0.1.0

05 Jan 11:19
Compare
Choose a tag to compare

Released a first version of the socket.io client. The current client provides a set of features like:

  • connecting to a server.
  • register callbacks for the following event types:
    • open
    • close
    • error
    • message
    • custom events like "foo", "on_payment", etc.
  • send json-data to the server (recommended to use serde_json as it provides safe handling of json data).
  • send json-data to the server and receive an ack with a possible message.