feat(runtime): add portable runtime support
req: push/009 req: push/010 req: push/011
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<strong>Count: {+ self.count +}</strong>
|
||||
@@ -0,0 +1,11 @@
|
||||
<main data-hemx-root="room" data-hemx-ws="/rooms/demo/socket" data-hemx-error="room_error">
|
||||
<h1>Durable hemx room</h1>
|
||||
<p>One Durable Object owns this room. Open it in two tabs.</p>
|
||||
<section data-hemx-slot="counter" aria-live="polite">
|
||||
<strong>Count: {+ self.count +}</strong>
|
||||
</section>
|
||||
<form method="post" action="/rooms/demo/increment" data-hemx-handle="increment">
|
||||
<button type="submit">Increment</button>
|
||||
</form>
|
||||
<p data-hemx-slot="room_error" role="alert"></p>
|
||||
</main>
|
||||
Reference in New Issue
Block a user