Skip to content

Commit

Permalink
Add description for Transport::Io
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsmfm committed Apr 26, 2019
1 parent 3e40d7c commit 31a2249
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Expand Up @@ -20,7 +20,7 @@ Or install it yourself as:

## Usage

:memo: Currently, this gem supports only stdio as transport layer.
Currently, this gem supports only stdio as transport layer out of box.

```ruby
require "language_server-protocol"
Expand Down Expand Up @@ -53,6 +53,14 @@ reader.read do |request|
end
```

You can use any IO object as transport layer:

```ruby
io = StringIO.new
writer = LSP::Transport::Io::Writer.new(io)
reader = LSP::Transport::Io::Reader.new(io)
```

## Versioning

language_server-protocol gem does NOT use semantic versioning.
Expand Down

0 comments on commit 31a2249

Please sign in to comment.