Class: Bixby::RpcHandler
- Inherits:
-
Object
- Object
- Bixby::RpcHandler
- Defined in:
- lib/bixby-common/api/rpc_handler.rb
Instance Method Summary collapse
-
#connect(json_req, api) ⇒ Object
Channel connect event.
-
#disconnect(api) ⇒ Object
Channel disconnection event NOTE: only used by WebSocket channels and generally only implemented by the server-side.
-
#handle(request) ⇒ JsonResponse
Handle a request.
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.
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.
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
10 11 12 |
# File 'lib/bixby-common/api/rpc_handler.rb', line 10 def handle(request) raise NotImplementedError end |