Method: Faye::Server#make_response
- Defined in:
- lib/faye/protocol/server.rb
#make_response(message) ⇒ Object
70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/faye/protocol/server.rb', line 70 def make_response() response = {} response['id'] = ['id'] if ['id'] response['clientId'] = ['clientId'] if ['clientId'] response['channel'] = ['channel'] if ['channel'] response['error'] = ['error'] if ['error'] response['successful'] = !response['error'] response end |