Getting Started with AnyCable-Go

AnyCable-Go is a WebSocket server for AnyCable written in Golang.

Installation

The easiest way to install AnyCable-Go is to download a pre-compiled binary.

MacOS users could install it with Homebrew

brew install anycable-go

# or use --HEAD option for edge versions
brew install anycable-go --HEAD

Arch Linux users can install anycable-go package from AUR.

Of course, you can install it from source too:

go get -u -f github.com/anycable/anycable-go/cmd/anycable-go

Usage

Run server:

$ anycable-go

=> INFO time context=main Starting AnyCable v1.2.1 (pid: 12902, open files limit: 524288, gomaxprocs: 4)

By default, anycable-go tries to connect to an RPC server listening at localhost:50051 (the default host for the Ruby gem). You can change this setting by providing --rpc_host option or ANYCABLE_RPC_HOST env variable (read more about configuration).

All other configuration parameters have the same default values as the corresponding parameters for the AnyCable RPC server, so you don't need to change them usually.