Class: AnyCable::GRPC::Handler

Inherits:
Service
  • Object
show all
Defined in:
lib/anycable/grpc/handler.rb

Overview

RPC service handler

Instance Method Summary collapse

Instance Method Details

#command(request, call) ⇒ Object



20
21
22
# File 'lib/anycable/grpc/handler.rb', line 20

def command(request, call)
  AnyCable.rpc_handler.handle(:command, request, call.)
end

#connect(request, call) ⇒ Object

Handle connection request from WebSocket server



12
13
14
# File 'lib/anycable/grpc/handler.rb', line 12

def connect(request, call)
  AnyCable.rpc_handler.handle(:connect, request, call.)
end

#disconnect(request, call) ⇒ Object



16
17
18
# File 'lib/anycable/grpc/handler.rb', line 16

def disconnect(request, call)
  AnyCable.rpc_handler.handle(:disconnect, request, call.)
end