From 1f1bb309609c0d5651cd80da0c96c3e3f350a4f1 Mon Sep 17 00:00:00 2001 From: gered Date: Sat, 4 Jun 2016 19:14:24 -0400 Subject: [PATCH] add missing docs to cover client-side send function integration point --- views.reagent/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/views.reagent/README.md b/views.reagent/README.md index e18acee..98c09a6 100644 --- a/views.reagent/README.md +++ b/views.reagent/README.md @@ -304,6 +304,14 @@ views.reagent recognized and handled the message as a view refresh event. See `views.reagent.utils/relevant-event?` for how it recognizes relevant messages. +You also need to provide a function to send messages to the server. +You can set this function by directly using `reset!` on the atom +`views.reagent.client/send-fn`. The function should take a single +argument which is the data to be sent. + +You should take care to hook up all of these integration points before +the first Reagent component is rendered at page load. + ## License Copyright © 2016 Gered King