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

패키지 상세v1.0.3

dart_frog_web_socket

Dart Frog용 WebSocket 지원 — Dart를 위한 빠르고 최소한의 백엔드 프레임워크입니다.

AndroidiOSmacOSWindowsLinux
30일 다운로드
9.7천
좋아요
56
Pub 점수
160

패키지 설치

flutter pub add dart_frog_web_socket

패키지 개요

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

Dart Frog WebSocket은 Dart Frog(경량이고 고성능인 Dart용 백엔드 프레임워크)에 WebSocket 통합을 제공하는 패키지입니다. 클라이언트와 서버 간 실시간 양방향 통신을 가능하게 하며, 채팅 앱, 협업 도구 또는 실시간 대시보드와 같은 실시간 업데이트가 필요한 애플리케이션에 적합합니다. 이 패키지는 최소한의 보일러플레이트로 Dart Frog의 라우팅 및 미들웨어 시스템을 자연스럽게 확장하여 WebSocket 연결을 처리합니다. 메시지 브로드캐스트, 연결 관리, 이벤트 기반 프로그래밍 패턴을 지원합니다. 성능과 단순성을 위해 설계되어 Dart Frog의 모듈형 아키텍처에 자연스럽게 통합됩니다.

사용 사례

  • 실시간 채팅 애플리케이션
  • 실시간 데이터 스트리밍
  • 협업 편집 도구
  • 게임 상태 동기화
  • 모니터링 및 대시보드 업데이트

주요 기능

  • Dart Frog과의 원활한 통합
  • 양방향 실시간 통신
  • 메시지 브로드캐스트 지원
  • 이벤트 기반 연결 처리
  • 필요한 최소 구성

적합한 대상

  • 실시간 백엔드 서비스를 구축하는 개발자
  • 백엔드 개발에 Dart Frog을 사용하는 팀
  • 저지연 통신이 필요한 프로젝트
  • 실시간 사용자 상호작용을 갖춘 애플리케이션
  • 성능과 간단함을 우선시하는 백엔드 시스템

고려 사항

  • Dart Frog 프레임워크가 필요합니다
  • 서버 측 WebSocket 처리에 제한됨
  • 내장 인증 없음(별도로 구현해야 함)
  • 비-Dart Frog 프로젝트에는 적합하지 않습니다
  • 클라이언트 측 구현은 외부에서 처리해야 합니다

원본 README

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

Dart Frog Logo Dart Frog Logo

discord dart

ci coverage style: dart frog lint License: MIT Powered by Mason

A fast, minimalistic backend framework for Dart 🎯

Originally developed by Very Good Ventures 🦄

Documentation 📝

For official documentation, please visit https://dart-frog.dev.

Packages 📦

Package Pub
dart_frog pub package
dart_frog_auth pub package
dart_frog_cli pub package
dart_frog_gen pub package
dart_frog_lint pub package
dart_frog_test pub package
dart_frog_web_socket pub package

Quick Start 🚀

Prerequisites 📝

In order to use Dart Frog you must have the Dart SDK installed on your machine.

Installing 🧑‍💻
# 📦 Install the dart_frog cli from pub.dev
dart pub global activate dart_frog_cli
Creating a Project ✨

Use the dart_frog create command to create a new project.

# 🚀 Create a new project called "my_project"
dart_frog create my_project
Start the Dev Server 🏁

Next, open the newly created project and start the dev server via:

# 🏁 Start the dev server
dart_frog dev

💡 Tip: By default port 8080 is used. A custom port can be used via the --port option.

Create a Production Build 📦

Create a production build which includes a DockerFile so that you can deploy anywhere:

# 📦 Create a production build
dart_frog build
Create New Routes and Middleware 🛣️

To add new routes and middleware to your project, use the dart_frog new command.

# 🛣️ Create a new route "/hello/world"
dart_frog new route "/hello/world"

# 🛣️ Create a new middleware for the route "/hello/world"
dart_frog new middleware "/hello/world"

Goals 🎯

Dart Frog is built on top of shelf and mason and is inspired by many tools including remix.run, next.js, and express.js.

The goal of Dart Frog is to help developers effectively build backends in Dart. Currently, Dart Frog is focused on optimizing the process of building backends which aggregate, compose, and normalize data from multiple sources.

Dart Frog provides a simple core with a small API surface area in order to reduce the learning curve and ramp-up time for developers. In addition, Dart Frog is intended to help Flutter/Dart developers maximize their productivity by having a unified tech stack that enables sharing tooling, models, and more!

Extensions 💻

  • VSCode: extends VSCode with support for Dart Frog and provides tools for effectively managing Dart Frog projects within VSCode.

카테고리

의존성

의존성 목록 3 개

소스 저장소

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

아직 데이터가 없습니다.