tanegashima v0.0.11 Tanegashima.Websocket behaviour

Elixir wrapper for Pushbullet-Websocket-API. You can do nothing other than override-defining handle_push and handle_other_message for nomal use. usage:

defmodule Examaple do
  use Tanegashima.Websocket
end

and

iex> Example.start

Summary

Callbacks

Handle your state when you get other than push or nop notification

Handle your state when you get push-tickle notification

The initial state of your GenServer

Types

state :: map

Callbacks

handle_other_message(binary, state)

Specs

handle_other_message(binary, state) :: state

Handle your state when you get other than push or nop notification.

handle_push(state)

Specs

handle_push(state) :: state

Handle your state when you get push-tickle notification.

initial_state()

Specs

initial_state :: state

The initial state of your GenServer.