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

패키지 상세v1.0.1

web_socket

WebSocket과 통신할 수 있는 여러 구현이 있는 사용하기 쉬운 라이브러리.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
1150만
좋아요
67
Pub 점수
160

패키지 설치

flutter pub add web_socket

패키지 개요

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

다양한 플랫폼에서 WebSocket 연결을 설정하고 관리하기 위한 간단하고 유연한 Dart 패키지입니다. 클라이언트와 서버 간 실시간 통신을 위한 일관된 API를 제공하며, 클라이언트 및 서버 측 구현 모두를 지원합니다. 사용이 간편하도록 설계되어 Flutter 앱과 기타 Dart 프로젝트에 원활하게 통합되며, 최소한의 보일러플레이트로 양방향 데이터 교환을 가능하게 합니다. 이 라이브러리는 Dart 팀에서 유지보수하며 Android, iOS, Web, macOS, Windows, Linux 등 모든 주요 플랫폼을 지원합니다.

사용 사례

  • 실시간 채팅 애플리케이션
  • 실시간 데이터 스트리밍
  • 온라인 게임
  • 사물인터넷 장치 통신
  • 동기화된 대시보드
  • 서버 전송 이벤트

주요 기능

  • 크로스 플랫폼 호환성
  • 연결 관리를 위한 간단한 API
  • 클라이언트 및 서버 역할 둘 다를 지원합니다
  • 내장형 오류 처리
  • 자동 재연결 시도
  • 경량이고 효율적

적합한 대상

  • 실시간 기능을 구축하는 개발자
  • 지속적인 연결을 필요로 하는 앱
  • 저지연 업데이트가 필요한 프로젝트
  • 풀스택 개발을 위해 Dart/Flutter를 사용하는 팀
  • 다중 플랫폼을 대상으로 하는 애플리케이션

고려 사항

  • WebSocket 서버 엔드포인트가 필요합니다
  • 메시지 직렬화를 위한 사용자 정의 로직이 필요할 수 있습니다
  • 일회성 HTTP 요청에 적합하지 않습니다
  • 성능은 네트워크 상태에 따라 달라집니다
  • 인증 및 보안은 별도로 처리되어야 합니다

원본 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.

카테고리

의존성

의존성 목록 1 개

  • web>=0.5.0 <2.0.0

소스 저장소

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