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

패키지 상세v3.0.0

shelf_web_socket

모든 연결에 대해 리스너를 연결하는 쉘프 핸들러입니다.

AndroidiOSmacOSWindowsLinux
30일 다운로드
1390만
좋아요
158
Pub 점수
160

패키지 설치

flutter pub add shelf_web_socket

패키지 개요

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

ShelfWebSocket은 Shelf 웹 서버 프레임워크에 WebSocket 기능을 통합하는 Dart 패키지입니다. WebSocket 연결을 관리하기 위한 핸들러를 제공하여 클라이언트와 서버 간 실시간 통신을 가능하게 합니다. 각 들어오는 연결은 리스너를 트리거하며, 개발자가 메시지, 브로드캐스트 및 연결 수명 주기 이벤트를 효율적으로 처리할 수 있도록 합니다. Shelf와 함께 사용하도록 설계되었으며, Android, iOS, macOS, Windows, Linux에서의 크로스플랫폼 배포를 지원합니다. 실시간 업데이트, 채팅 시스템 또는 실시간 데이터 동기화가 필요한 애플리케이션에 적합합니다.

사용 사례

  • 실시간 채팅 애플리케이션
  • 실시간 데이터 스트리밍
  • 인터랙티브 웹 대시보드
  • 멀티플레이어 게임 백엔드
  • 사물인터넷 장치 통신

주요 기능

  • Shelf와의 원활한 통합
  • 연결별 리스너 처리
  • 크로스 플랫폼 지원
  • 간단한 메시지 브로드캐스팅
  • 내장형 연결 수명 주기 관리

적합한 대상

  • 백엔드 서비스에 Shelf를 사용하는 개발자
  • 실시간 애플리케이션 개발자
  • 풀스택 Dart 개발자
  • 서버 측 Dart 프로젝트
  • 웹 및 모바일 백엔드 개발

고려 사항

  • Shelf 프레임워크에 대한 이해가 필요합니다
  • 독립형 WebSocket 서버에 적합하지 않습니다
  • Dart 기반 서버 환경에 한정
  • 추가 보안 조치가 필요할 수 있습니다
  • 선반 패키지 버전 호환성에 따라 다름

원본 README

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

Build Status

About Shelf

Shelf makes it easy to create and compose web servers and parts of web servers. How?

  • Expose a small set of simple types.
  • Map server logic into a simple function: a single argument for the request, the response is the return value.
  • Trivially mix and match synchronous and asynchronous processing.
  • Flexibility to return a simple string or a byte stream with the same model.

It was inspired by Connect for NodeJS and Rack for Ruby.

See the package:shelf readme for more information.

Packages

Package Description Issues Version
shelf A model for web server middleware that encourages composition and easy reuse. issues pub package
shelf_packages_handler A shelf handler for serving a packages/ directory. issues pub package
shelf_proxy A shelf handler for proxying HTTP requests to another server. issues pub package
shelf_router A convenient request router for the shelf web-framework, with support for URL-parameters, nested routers and routers generated from source annotations. issues pub package
shelf_router_generator A package:build-compatible builder for generating request routers for the shelf web-framework based on source annotations. issues pub package
shelf_static Static file server support for the shelf package and ecosystem. issues pub package
shelf_test_handler A Shelf handler that makes it easy to test HTTP interactions. issues pub package
shelf_web_socket A shelf handler that wires up a listener for every connection. issues pub package
_shelf_compliance HTTP/1.1 compliance and hardening tests. issues (not published)

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

카테고리

의존성

의존성 목록 3 개

소스 저장소

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

순위