CREATE OR REPLACE FUNCTION cb_publish(
topic VARCHAR,
args JSON DEFAULT '[]',
kwargs JSON DEFAULT '{}'
)
RETURNS VOID
AS
$$
BEGIN
PERFORM
pg_notify(
'crossbar_pubsub_event',
row_to_json(x) :: VARCHAR
)
FROM
(SELECT
'direct' AS "type",
topic AS topic,
args AS args,
kwargs AS kwargs
) x;
END;
$$
LANGUAGE plpgsql;
--
You received this message because you are subscribed to a topic in the Google Groups "Autobahn" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/autobahnws/D2gukCYaEG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to autobahnws+...@googlegroups.com.
To post to this group, send email to autob...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/autobahnws/a07696c5-0ffa-4f5b-8c50-afd44f5d8b81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.