-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
4,961 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,36 @@ | ||
# Websocket client for [Centrifugo server](https://github.com/centrifugal/centrifugo) and [Centrifuge library](https://github.com/centrifugal/centrifuge). | ||
# Centrifuge Dart | ||
|
||
Websocket client for [Centrifugo server](https://github.com/centrifugal/centrifugo) and [Centrifuge library](https://github.com/centrifugal/centrifuge) based on [ws library](https://pub.dev/packages/ws). | ||
|
||
## How to regenerate protobuf files | ||
|
||
Windows: | ||
|
||
```ps1 | ||
$ choco install protoc | ||
$ dart pub global activate protoc_plugin | ||
$ protoc --proto_path=lib/src/model/protobuf --dart_out=lib/src/model/protobuf lib/src/model/protobuf/client.proto | ||
$ dart format -l 80 lib/src/model/protobuf/ | ||
``` | ||
|
||
Linux: | ||
|
||
```bash | ||
$ sudo apt update | ||
$ sudo apt install -y protobuf-compiler dart | ||
$ export PATH="$PATH":"$HOME/.pub-cache/bin" | ||
$ dart pub global activate protoc_plugin | ||
$ protoc --proto_path=lib/src/model/protobuf --dart_out=lib/src/model/protobuf lib/src/model/protobuf/client.proto | ||
$ dart format -l 80 lib/src/model/protobuf/ | ||
``` | ||
|
||
macOS: | ||
|
||
```zsh | ||
$ brew update | ||
$ brew install protobuf dart | ||
$ export PATH="$PATH":"$HOME/.pub-cache/bin" | ||
$ dart pub global activate protoc_plugin | ||
$ protoc --proto_path=lib/src/model/protobuf --dart_out=lib/src/model/protobuf lib/src/model/protobuf/client.proto | ||
$ dart format -l 80 lib/src/model/protobuf/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.