패키지, 저장소 및 앱 카테고리 검색

패키지 상세v3.0.3

web_socket_channel

WebSocket용 StreamChannel 래퍼입니다. 크로스 플랫폼 WebSocketChannel API를 제공하며, 하위 StreamChannel을 통해 통신하는 크로스 플랫폼 구현을 제공합니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
1290만
좋아요
1.7천
Pub 점수
150

패키지 설치

flutter pub add web_socket_channel

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

web_socket_channel 패키지는 웹소켓 통신을 위한 크로스 플랫폼 API를 제공하며, StreamChannel을 래핑하여 다양한 플랫폼에서 일관된 웹소켓 처리를 가능하게 합니다. 웹소켓 연결의 설정과 관리를 위한 통합 인터페이스를 제공하고, 하위 플랫폼의 차이점을 추상화합니다. Dart의 StreamChannel 위에 구축되어 있으며, 스트림을 통해 양방향 데이터 흐름을 지원하여 실시간 애플리케이션에 적합합니다. 이 패키지는 Android, iOS, Web, macOS, Windows, Linux를 대상으로 하는 Flutter 앱용으로 설계되었으며, 기존의 스트림 기반 아키텍처와의 원활한 통합을 보장합니다.

사용 사례

  • 실시간 채팅 애플리케이션
  • 대시보드에서 실시간 데이터 업데이트
  • 멀티플레이어 게임 동기화
  • 사물인터넷 장치 통신
  • 스트리밍 분석 데이터

주요 기능

  • 크로스 플랫폼 WebSocket 지원
  • StreamChannel 기반 API
  • 양방향 데이터 스트리밍
  • 플랫폼 간 일관된 인터페이스
  • 내장된 오류 처리 및 재연결 로직

적합한 대상

  • 실시간 기능을 구축하는 플러터 개발자
  • 지속적인 서버 연결을 필요로 하는 앱
  • 다중 플랫폼 대상 프로젝트
  • 스트림 기반의 데이터 아키텍처
  • 신뢰할 수 있는 WebSocket 전송이 필요한 응용 프로그램

고려 사항

  • 하위 StreamChannel 구현이 필요합니다
  • 생산 환경 사용을 위해 추가적인 오류 처리가 필요할 수 있습니다
  • WebSocket 프로토콜이 아닌 경우 적합하지 않습니다
  • Dart의 비동기 기능에 의존합니다
  • WebSocket 전용 사용 사례에 한정

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Build Status

A composable, Future-based library for making HTTP requests.

package:http contains a set of high-level functions and classes that make it easy to consume HTTP resources. It's multi-platform, and supports mobile, desktop, and the browser.

Packages

Package Description Version
cronet_http An Android Flutter plugin that provides access to the Cronet HTTP client. pub package
cupertino_http A macOS/iOS Flutter plugin that provides access to the Foundation URL Loading System. pub package
flutter_http_example An Flutter app that demonstrates how to configure and use package:http. —
http A composable, multi-platform, Future-based API for HTTP requests. pub package
http2 A HTTP/2 implementation in Dart. pub package
http_client_conformance_tests A library that tests whether implementations of package:http's Client class behave as expected.
http_multi_server A dart:io HttpServer wrapper that handles requests from multiple servers. pub package
http_parser A platform-independent package for parsing and serializing HTTP formats. pub package
http_profile A library used by HTTP client authors to integrate with the DevTools Network View. pub package
ok_http An Android Flutter plugin that provides access to the OkHttp HTTP client and the OkHttp WebSocket API. pub package
web_socket Any easy-to-use library for communicating with WebSockets that has multiple implementations. pub package
web_socket_channel StreamChannel wrappers for WebSockets. Provides a cross-platform WebSocketChannel API. package issues
web_socket_conformance_tests A library that tests whether implementations of package:web_socket's WebSocket class behave as expected.

Contributing

If you'd like to contribute to any of these packages, see the Contributing Guide.

카테고리

의존성

의존성 목록 5 개

소스 저장소

이 패키지를 사용하는 프로젝트