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

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 [...]

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add socket_io_client_new

With Flutter:

 $ flutter pub add socket_io_client_new

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  socket_io_client_new: ^1.0.3

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:socket_io_client_new/socket_io_client_new.dart';
0
likes
140
points
163
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

Documentation

API reference

License

MIT (license)

Dependencies

logging, socket_io_common, web

More

Packages that depend on socket_io_client_new