-
Notifications
You must be signed in to change notification settings - Fork 39
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
Websocket frame validator #1825
Conversation
|
||
sealed trait WebsocketMessage[A] { | ||
def data: A | ||
def str()(implicit m: Materializer, ec: ExecutionContext): Future[String] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe a bytes() method ?
def onRequestFlow: Boolean = false | ||
def onResponseFlow: Boolean = false | ||
|
||
def canAccess[A](ctx: NgWebsocketPluginContext, message: WebsocketMessage[A]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe move this one in the validator plugin
|
||
trait NgWebsocketValidatorPlugin extends NgWebsocketPlugin { | ||
def rejectStrategy(ctx: NgWebsocketPluginContext): RejectStrategy | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add a transformer plugin
No description provided.