搜尋套件、儲存庫與 APP 分類

套件詳情v1.0.3

dart_frog_web_socket

Dart Frog 的 WebSocket 支持 — 一個快速、輕量的 Dart 後端框架。

AndroidiOSmacOSWindowsLinux
近 30 天下載
9700
喜歡數
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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。