Skip to content

The ?ws/!ws directives #52

@lowlighter

Description

@lowlighter

Scope

unstable

What do you want to define?

New ?ws and !ws directives, that would act similar to %http directive but for websockets

  • ? would be used for requests
  • ! would be used for responses
<form *set="{ content: '' }" ?="wss://example.com" ?message="content" [email protected]>
  <textarea ::value="content"></textarea>
  <button>Send</button>
</form>

<div class="messages" [email protected][append]>
  <!-- ... -->
</div>

Potentially blocking:

I have searched for existing issues

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: unstablespecSpec definition for non-well defined behaviors

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions