Sha256: 36d0832d685059683d8118e911b404ae54749035ef98123fc941af3f91f28a70

Contents?: true

Size: 365 Bytes

Versions: 7

Compression:

Stored size: 365 Bytes

Contents

# frozen_string_literal: true

class BasicSocket
  def initialize(...)
    raise NotImplementedError, "Socket is not supported in Wasm"
  end
end

class Socket < BasicSocket
  AF_UNSPEC = 0
  AF_INET = 1
end

class IPSocket < Socket
  def self.getaddress(...)
    raise NotImplementedError, "Socket is not supported in Wasm"
  end
end

class TCPSocket < Socket
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wasmify-rails-0.2.0 lib/wasmify/rails/shims/socket.rb
wasmify-rails-0.1.5 lib/wasmify/rails/shims/socket.rb
wasmify-rails-0.1.4 lib/wasmify/rails/shims/socket.rb
wasmify-rails-0.1.3 lib/wasmify/rails/shims/socket.rb
wasmify-rails-0.1.2 lib/wasmify/rails/shims/socket.rb
wasmify-rails-0.1.1 lib/wasmify/rails/shims/socket.rb
wasmify-rails-0.1.0 lib/wasmify/rails/shims/socket.rb