Class: Bixby::RpcHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/bixby-common/api/rpc_handler.rb

Instance Method Summary collapse

Instance Method Details

#connect(json_req, api) ⇒ Object

Channel connect event

NOTE: only used by WebSocket channels and generally only implemented by

the server-side.

Parameters:



21
22
23
# File 'lib/bixby-common/api/rpc_handler.rb', line 21

def connect(json_req, api)
  # no-op
end

#disconnect(api) ⇒ Object

Channel disconnection event NOTE: only used by WebSocket channels and generally only implemented by

the server-side.

Parameters:



30
31
32
# File 'lib/bixby-common/api/rpc_handler.rb', line 30

def disconnect(api)
  # no-op
end

#handle(request) ⇒ JsonResponse

Handle a request

Parameters:

Returns:

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/bixby-common/api/rpc_handler.rb', line 10

def handle(request)
  raise NotImplementedError
end