Sha256: 75aa14a52d223b001b8c243d489cd09855b4abf232cf43c81dac8e9eaa55fc46

Contents?: true

Size: 764 Bytes

Versions: 19

Compression:

Stored size: 764 Bytes

Contents

module Bixby
  class RpcHandler

    def initialize(*args)
    end

    # Handle a request
    #
    # @param [JsonRequest] request
    #
    # @return [JsonResponse] response
    def handle(request)
      raise NotImplementedError
    end

    # Channel connect event
    #
    # NOTE: only used by WebSocket channels and generally only implemented by
    #       the server-side.
    #
    # @param [Bixby::JsonRequest] json_req
    # @param [Bixby::APIChannel] api
    def connect(json_req, api)
      # no-op
    end

    # Channel disconnection event
    # NOTE: only used by WebSocket channels and generally only implemented by
    #       the server-side.
    #
    # @param [Bixby::APIChannel] api
    def disconnect(api)
      # no-op
    end

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
bixby-common-0.7.1 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.7.0 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.6.6 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.6.5 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.6.4 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.6.3 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.6.2 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.6.1 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.6.0 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.5.0 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.4.13 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.4.12 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.4.11 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.4.10 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.4.9 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.4.8 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.4.7 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.4.6 lib/bixby-common/api/rpc_handler.rb
bixby-common-0.4.5 lib/bixby-common/api/rpc_handler.rb