Releases: 1c3t3a/rust-socketio
Releases · 1c3t3a/rust-socketio
v0.3.0-alpha.2
Changes
-
Rename
Socket
toClient
andSocketBuilder
toClientBuilder
-
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
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
v0.2.3
v0.2.2
v0.2.1
v0.2.0
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
v0.1.0
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.