Class: Neovim::ConnectionTcp
- Inherits:
-
Connection
- Object
- MPLight::Types
- Connection
- Neovim::ConnectionTcp
- Defined in:
- lib/neovim/connection.rb
Constant Summary
Constants included from Logging
Logging::DEFAULT_LEVEL, Logging::LEVELS
Instance Attribute Summary
Attributes inherited from Connection
Class Method Summary collapse
Methods inherited from Connection
#additional_data, #error, #initialize, #start
Methods included from Logging
Constructor Details
This class inherits a constructor from Neovim::Connection
Class Method Details
.open_files(host, port, timeout: nil) ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/neovim/connection.rb', line 72 def open_files host, port, timeout: nil due = Time.now + timeout if timeout require "socket" begin TCPSocket.open host, port do |socket| due = nil yield (new socket, socket) end rescue Errno::ECONNREFUSED if due then sleep 0.1 retry end end end |