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

Compiler Plugin Allows Passing an HTTP Listener with Configs to Listener Init #2782

Closed
ayeshLK opened this issue Mar 14, 2022 · 0 comments
Closed
Assignees
Labels
module/websub module/websubhub Issues related to Ballerina websubhub module Points/2 Reason/Complex Issue occurred due to complex scenario. Team/PCM Protocol connector packages related issues Type/Bug
Milestone

Comments

@ayeshLK
Copy link
Member

ayeshLK commented Mar 14, 2022

Description:
When used with the check expression, WebSub/WebSubHub listener init function will allow passing additional configs with an HTTP listener variable.

The following scenarios should throw a compilation error, but it does not.

  1. WebSub Listenet
import ballerina/websub;
import ballerina/http;

listener http:Listener httpListener = new(9090);
listener websub:Listener websubListener = check new(httpListener, timeout = 1000);
  1. WebSubHub Listenet
import ballerina/websubhub;
import ballerina/http;

listener http:Listener httpListener = new(9090);
listener websubhub:Listener hubListener = check new(httpListener, timeout = 1000);
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 Points/2 Reason/Complex Issue occurred due to complex scenario. Team/PCM Protocol connector packages related issues Type/Bug
Projects
Archived in project
Development

No branches or pull requests

4 participants