bdd181425b
Docker Compose project with automated Playwright benchmarks comparing django-liveview 2.2.0 against Phoenix LiveView 1.0 across 6 scenarios.
9 lines
246 B
Python
9 lines
246 B
Python
from liveview.consumers import LiveViewConsumer
|
|
from liveview.connections import send
|
|
|
|
|
|
class BenchmarkConsumer(LiveViewConsumer):
|
|
def connect(self):
|
|
super().connect()
|
|
send(self, {"target": "#ws-status", "html": "connected"})
|