Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
boazsegev committed Nov 10, 2024
1 parent 99b13b3 commit 82fb628
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ When a browser that supports compressed encoding (which is most browsers) reques

It's as easy as that. No extra code required.
### Special HTTP `Upgrade` and SSE support
### Native HTTP `Upgrade` and SSE support
Iodine's HTTP server has native support for [WebSocket](https://github.com/boazsegev/neorack/blob/master/extensions/websockets.md)/[SSE](https://github.com/boazsegev/neorack/blob/master/extensions/sse.md), using both [NeoRack](https://github.com/boazsegev/neorack) extensions and the Rack `env` response style.

Expand Down
2 changes: 2 additions & 0 deletions lib/iodine/documentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,8 @@ def write_headers(name, values); end
#
# For WebSocket connections: if `data` is a UTF-8 encoded String, message will be sent as `text`, otherwise message will be sent as `binary`.
#
# For SSE connections: this is similar to calling `write_sse(nil, nil, data)`.
#
# Returns `false` on error / fail and `true` if the event was scheduled to be sent to the client.
def write(data); end
# Writes data to EventSource client connections asynchronously.
Expand Down

0 comments on commit 82fb628

Please sign in to comment.