socket_io_client_new 1.0.0 copy "socket_io_client_new: ^1.0.0" to clipboard
socket_io_client_new: ^1.0.0 copied to clipboard

retracted

A fixed fork of socket_io_client that resolves the port 0 issue. When Dart's Uri.parse() parses URLs without explicit ports, it returns port=0, causing WebSocket connections to fail. This package prop [...]

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.0 - 2025-01-02 #

Fixed #

  • Critical: Fixed port 0 issue where WebSocket connections failed when connecting to URLs without explicit ports
    • When Dart's Uri.parse() parses URLs like https://api.example.com, it returns port = 0 instead of the protocol's default port
    • The original package used this port directly, resulting in invalid URLs like wss://api.example.com:0/socket.io/
    • This fix detects when port is 0 and sets the correct default port (443 for HTTPS/WSS, 80 for HTTP/WS)

Notes #

  • Initial release (forked from socket_io_client)
  • API remains fully compatible with socket_io_client - just change the import
  • Minimum Dart SDK version: 3.0.0
0
likes
0
points
741
downloads

Publisher

unverified uploader

Weekly Downloads

A fixed fork of socket_io_client that resolves the port 0 issue. When Dart's Uri.parse() parses URLs without explicit ports, it returns port=0, causing WebSocket connections to fail. This package properly handles default ports.

Repository (GitHub)
View/report issues

Topics

#socket-io #websocket #realtime #networking

License

unknown (license)

Dependencies

logging, socket_io_common, web

More

Packages that depend on socket_io_client_new