Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .rubocop-md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ AllCops:
- 'vendor/**/*'
- 'gemfiles/**/*'
- 'benchmarks/**/*'
- '**/node_modules/**/*'
DisplayCopNames: true
SuggestExtensions: false
NewCops: disable
TargetRubyVersion: 2.7
TargetRubyVersion: 3.1

inherit_gem:
standard: config/base.yml
Expand All @@ -23,3 +24,7 @@ Standard/BlockSingleLineBraces:

Layout/InitialIndentation:
Enabled: false

# Code blocks nested in Markdown lists are indented, which trips indentation cops.
Layout/IndentationConsistency:
Enabled: false
36 changes: 18 additions & 18 deletions docs/anycable-go/library.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@ Here is a minimal example Go code (you can find the full and up-to-date version
package main

import (
"net/http"
"net/http"

"github.com/anycable/anycable-go/cli"
"github.com/anycable/anycable-go/cli"
)

func main() {
opts := []cli.Option{
cli.WithName("AnyCable"),
cli.WithDefaultRPCController(),
cli.WithDefaultBroker(),
cli.WithDefaultSubscriber(),
cli.WithDefaultBroadcaster(),
}

c := cli.NewConfig()
runner, _ := cli.NewRunner(c, opts)
anycable, _ := runner.Embed()

wsHandler, _ := anycable.WebSocketHandler()
http.Handle("/cable", wsHandler)

http.ListenAndServe(":8080", nil)
opts := []cli.Option{
cli.WithName("AnyCable"),
cli.WithDefaultRPCController(),
cli.WithDefaultBroker(),
cli.WithDefaultSubscriber(),
cli.WithDefaultBroadcaster(),
}

c := cli.NewConfig()
runner, _ := cli.NewRunner(c, opts)
anycable, _ := runner.Embed()

wsHandler, _ := anycable.WebSocketHandler()
http.Handle("/cable", wsHandler)

http.ListenAndServe(":8080", nil)
}
```
24 changes: 24 additions & 0 deletions forspell.dict
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,27 @@ Kamal
Thruster
resumeable
Fargate
Grafana
Msgpack
Msgpack-encoded
Posthog
Preflight
Protobufs
Soketi
Twilio
Valkey
automaxprocs
binstub
caniuse
graphql-anycable
graphql-ws
influxdb
jid
misconfigured
noauth
norpc
reconnection
resumable
subprotocol
virtualized
webhooks
Loading