Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Julia bindings for Hydna
Julia
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
test
README.md
REQUIRE

README.md

Hydna Julia Client Library

This first version of our client library for Julia implements support for the Hydna Push API. Future versions will include support for the full set of features.

More info: https://www.hydna.com/

Usage

The exported APIs from module Hydna are:

using Hydna

# send a message
result = Hydna.send('public.hydna.net/julia-test', 'hello world')
@test result.success

# send message with priority 3
result = Hydna.send('public.hydna.net/julia-test',
                    'hello world',
                    SendOptions(priority=3))
@test result.success

# send a non-blocking message
ref = Hydna.send('public.hydna.net/julia-test',
                 'hello world',
                 SendOptions(blocking=false))
result = fetch(ref)
@test result.success

# emit a signal
result = Hydna.emit('public.hydna.net/julia-test', 'hello world signal')
@test result.success

# emit a non-blocking signal
ref = Hydna.emit('public.hydna.net/julia-test',
                 'hello world',
                 EmitOptions(blocking=false))
result = fetch(ref)
@test result.success
Something went wrong with that request. Please try again.