-
Generated jwt: Call publish: Why the message to the specific user does not come? If we send to the entire channel, then everything is ok. config.json {
"v3_use_offset": true,
"token_hmac_secret_key": "CPQFZIBI4vN0ha141",
"api_key": "wDQHvgfWGye5qUvTkRMCxJra94Xp7FRZhwJYEtLz",
"admin_password": "password",
"admin_secret": "secret",
"admin": true,
"allowed_origins": [
"*"
],
"publish": true,
"proxy_publish": true,
"proxy_subscribe": true,
"proxy_connect": true,
"allow_subscribe_for_client": true,
"grpc_api": true,
"grpc_api_address": "0.0.0.0",
"grpc_api_port": 10000,
"proxy_connect_endpoint": "grpc://docker.for.mac.host.internal:10001",
"proxy_connect_timeout": "10s",
"proxy_publish_endpoint": "grpc://docker.for.mac.host.internal:10001",
"proxy_publish_timeout": "10s",
"proxy_subscribe_endpoint": "grpc://docker.for.mac.host.internal:10001",
"proxy_subscribe_timeout": "10s",
"proxy_refresh_endpoint": "grpc://docker.for.mac.host.internal:10001",
"proxy_refresh_timeout": "10s",
"proxy_rpc_endpoint": "grpc://docker.for.mac.host.internal:10001",
"proxy_rpc_timeout": "10s",
"uni_sse": true,
"namespaces": [
{
"name": "auth",
"allow_subscribe_for_client": true
}
]
}
|
Beta Was this translation helpful? Give feedback.
Answered by
FZambia
Jan 12, 2023
Replies: 1 comment
-
Hello, from what I see, you subscribe user to channel |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
root-aza
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, from what I see, you subscribe user to channel
auth:qr
, but publishing toauth:qr#150,250
. See https://centrifugal.dev/docs/server/channels#channel-is-just-a-string docs, it should give the idea how things work in Centrifugo. TLDR you need to publish toauth:qr
for user to receive the message in this case.