anycable-core 1.6.1 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed5cba84c41eaff48b39efff0d9e6e1f92c717157fef1028138d5b2e4aedb8b7
4
- data.tar.gz: 03527a7b8abdb352df1db3d4b10cf1ea53016bf71f7a6d9dbe17aebc191d7c88
3
+ metadata.gz: 0f273c9f627c0c7885a28b1f961bf45eb96c3f7b1ae94d42845c8b1e1dfc187c
4
+ data.tar.gz: 66d6d1a1fd64f6011a6829c36ea62a7267566483f4fa470cfeb9a7031e2ee7f9
5
5
  SHA512:
6
- metadata.gz: 447793f557f75d3f587196c7e3f85b563272e0a31a6c23cc3b653902619874dac2f8f92fe3ec6ad53a81bf301cfc67ff04670e35648356cbdaab5eeb8313003d
7
- data.tar.gz: 94535fc3bbbe995e1015868a7b9e29c34134bf72ad312e2ec4c96c630e925127bc658562b0d396607577e99426c6b3086b8bc84f3941e60889d1db2879c96534
6
+ metadata.gz: d7be5b0c420ac6ed1382a67a06b585339df4f4068c12333e3be973e46892b30f51fafb0af3f26fc8fb3437ee9c9f347cf63cbf54ca91f12254e9773e7beb23d1
7
+ data.tar.gz: d8b0a2bc2bf146e0d1356656ca0363dabf0c5d4e277b4bb72e2e1a6c41b1e35dc929c741aec27b534d685e5a10900e41e21e827887f5c697638277c6c0c31ad8
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 1.6.2 (2025-12-18)
6
+
7
+ - Use the same default port for HTTP broadcasts as in AnyCable. ([@palkan][])
8
+
5
9
  ## 1.6.1 (2025-08-19)
6
10
 
7
11
  - Update gRPC server keepalive configuration. ([@palkan][])
data/lib/anycable/cli.rb CHANGED
@@ -55,7 +55,7 @@ module AnyCable
55
55
 
56
56
  print_version!
57
57
 
58
- logger.info "Serving #{defined?(::Rails) ? "Rails " : ""}application from #{boot_file}" unless embedded?
58
+ logger.info "Serving #{"Rails " if defined?(::Rails)}application from #{boot_file}" unless embedded?
59
59
 
60
60
  verify_connection_factory!
61
61
 
@@ -55,7 +55,7 @@ module AnyCable
55
55
  nats_options: {},
56
56
 
57
57
  ### HTTP broadcasting options
58
- http_broadcast_url: "http://localhost:8090/_broadcast",
58
+ http_broadcast_url: nil,
59
59
  # DEPRECATED: use `broadcast_key` instead
60
60
  http_broadcast_secret: nil,
61
61
 
@@ -101,6 +101,11 @@ module AnyCable
101
101
  !http_health_port.nil? && http_health_port != ""
102
102
  end
103
103
 
104
+ def http_broadcast_url
105
+ # AnyCable accepts broadcast on a different port by default when no authentication configured
106
+ super || (broadcast_key! ? "http://localhost:8080/_broadcast" : "http://localhost:8090/_broadcast")
107
+ end
108
+
104
109
  def broadcast_key!
105
110
  if http_broadcast_secret && !broadcast_key
106
111
  self.broadcast_key ||= http_broadcast_secret
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AnyCable
4
- VERSION = "1.6.1"
4
+ VERSION = "1.6.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anycable-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dementyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-20 00:00:00.000000000 Z
11
+ date: 2025-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anyway_config