An open API service indexing awesome lists of open source software.

https://github.com/asmod4n/mruby-websockets

A simple websockets clients for mruby
https://github.com/asmod4n/mruby-websockets

http mruby websockets

Last synced: 9 months ago
JSON representation

A simple websockets clients for mruby

Awesome Lists containing this project

README

          

# mruby-websockets

You need to have libressl installed, on macOS this can be easily done with homebrew.
Then add
```ruby
conf.gem mgem: 'mruby-websockets' do |g|
g.cc.include_paths << '/usr/local/opt/libressl/include'
g.linker.library_paths << '/usr/local/opt/libressl/lib'
end
```
to your build_config.rb

Example
===========
```ruby
client = WebSocket::Client.new("echo.websocket.org", 443, '/', ciphers: 'TLSv1.2')
client.send "hallo"
client.recv
client.close

```