Hypen in pubsub topic name breaks delivery
See original GitHub issueDescribe the bug
When using this: example.hello
topic name, messages get delivered okay.
When using this: example-hello
topic name, messages do not get delivered.
To Reproduce
"use strict";
// does not work
const topic = 'example-hello';
// does work fine
// const topic = 'example.hello';
const opts = {
realm: 'realm1',
}
const ws = new Wampy('/ws', opts);
ws.subscribe(topic, function (dataArr, dataObj) {
console.log('got it', dataArr);
});
const w2 = new Wampy('/ws', opts);
w2.publish(topic, 'hello-foo');
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Create and use topics | Cloud Pub/Sub Documentation
This document explains how to create, update, view, and delete a Pub/Sub topic. This document also explains how to name topics and subscriptions....
Read more >pubsub - Go Packages
Package pubsub provides an easy way to publish and receive Google Cloud Pub/Sub messages, hiding the details of the underlying server RPCs.
Read more >6. Compounding Rules A compound word is a union of two or ...
The hyphen is a mark of punctuation that not only unites but also separates the component words; it facilitates understanding, aids readability, and...
Read more >Amazon Simple Notification Service (SNS) FAQs - AWS
Q: What is the format of an Amazon SNS topic? Topic names are limited to 256 characters. Alphanumeric characters plus hyphens (-) and...
Read more >Things I wish I knew about Google Cloud Pub/Sub: Part 2
First, a publisher sends a message to the topic. Once the Pub/Sub server receives the message, it adds fields to the message such...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @cameronelliott! I don’t think you noticed that in the documentation:
And as @gammazero already mentioned, strict validation is preffered. In this case you can safely use any router and client and be sure about interop.
@cameronelliott