require "hara/version" module Hara class << self #decode message, return action and args def decode_msg msg JSON.parse msg end def encode_msg msg msg.to_json end def filter_class @filter_class || DefaultFilter end def filter_class= klass @filter_class = klass end def filter_pool_size= size @filter_pool_size = size end def filter_pool_size @filter_pool_size || 10 end def filter_pool @filter_pool ||= filter_class.pool(size: filter_pool_size) end end end require 'hara/app' require 'hara/filter' require 'hara/default_filter' require 'hara/server'