Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

websub and websubhub compiler plugin does not allow listener port to be a pre-defined variable #6339

Closed
ayeshLK opened this issue Apr 16, 2024 · 2 comments
Assignees
Labels
module/websub module/websubhub Issues related to Ballerina websubhub module Team/PCM Protocol connector packages related issues Type/Bug
Milestone

Comments

@ayeshLK
Copy link
Member

ayeshLK commented Apr 16, 2024

Description:

$subject

Check following sample code:

int port = 9000;

# WebSub listener
listener websub:Listener ls = new(port, host = os:getEnv("HOSTNAME"));

# WebSubHub listener
listener websubhub:Listener ls2 = new(port, host = os:getEnv("HOSTNAME"));

Getting following compile-time error:

// WebSub error
websub:Listener should only take either http:Listener or websub:ListenerConfiguration

// WebSubHub error
websubhub:Listener should only take either http:Listener or websubhub:ListenerConfiguration
@ayeshLK ayeshLK closed this as completed May 3, 2024
@github-project-automation github-project-automation bot moved this from PR Sent to Done in Ballerina Team Main Board May 3, 2024
Copy link

github-actions bot commented May 3, 2024

This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.

      - Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
      - Reason/Regression - The issue has introduced a regression.
      - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
      - Reason/Complex - Issue occurred due to complex scenario.
      - Reason/Invalid - Issue is invalid.
      - Reason/Other - None of the above cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/websub module/websubhub Issues related to Ballerina websubhub module Team/PCM Protocol connector packages related issues Type/Bug
Projects
Archived in project
Development

No branches or pull requests

1 participant