ManageIQ/manageiq

View on GitHub
lib/remote_console/server_adapter.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module RemoteConsole
  module ServerAdapter
    # This module contains adapters for the incoming hijacked connections
    def self.new(record, env, sock)
      if record.protocol.end_with?('uint8utf8')
        WebsocketUint8Utf8.new(env, sock)
      else
        WebsocketBinary.new(env, sock)
      end
    end
  end
end