Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 485 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 485 Bytes

mruby-websockets

You need to have libressl installed, on macOS this can be easily done with homebrew. Then add

  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

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