Skip to content

Commit

Permalink
centrifuge v0.34.0 changes (#441)
Browse files Browse the repository at this point in the history
This branch collects Centrifuge v0.34.0 related works. v0.34.0 is aimed to become the base for Centrifugo v6. So it contains notable improvements, new features and some breaking changes.
  • Loading branch information
FZambia authored Jan 12, 2025
1 parent 38ab1ae commit 81f7854
Show file tree
Hide file tree
Showing 49 changed files with 2,318 additions and 3,831 deletions.
5 changes: 4 additions & 1 deletion _examples/chat_json/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,14 @@ func channelSubscribeAllowed(channel string) bool {
}

func main() {
node, _ := centrifuge.New(centrifuge.Config{
node, err := centrifuge.New(centrifuge.Config{
LogLevel: centrifuge.LogLevelInfo,
LogHandler: handleLog,
HistoryMetaTTL: 24 * time.Hour,
})
if err != nil {
log.Fatal(err)
}

node.OnConnecting(func(ctx context.Context, e centrifuge.ConnectEvent) (centrifuge.ConnectReply, error) {
cred, _ := centrifuge.GetCredentials(ctx)
Expand Down
1 change: 0 additions & 1 deletion _examples/custom_broker_nats/natsbroker/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ func (b *NatsBroker) Run(h centrifuge.BrokerEventHandler) error {
return err
}
b.nc = nc
b.node.Log(centrifuge.NewLogEntry(centrifuge.LogLevelInfo, fmt.Sprintf("Nats Broker connected to: %s", servers)))
return nil
}

Expand Down
136 changes: 0 additions & 136 deletions _examples/custom_engine_tarantool/index.html

This file was deleted.

203 changes: 0 additions & 203 deletions _examples/custom_engine_tarantool/main.go

This file was deleted.

Loading

0 comments on commit 81f7854

Please sign in to comment.