Sha256: 65846a0bf248fd027d0f48012264c29ba487dbaacf0da240f909aa1a91075aa7
Contents?: true
Size: 668 Bytes
Versions: 2
Compression:
Stored size: 668 Bytes
Contents
require File.expand_path('../websocket_native_ext', __FILE__) # WebSocket Native Extension # @author Bernard "Imanel" Potocki # @see http://github.com/imanel/websocket-ruby-extension main repository module WebSocket if RUBY_PLATFORM =~ /java/ require 'jruby' org.imanel.websocket.WebSocketNativeExtService.new.basicLoad(JRuby.runtime) end module Frame class Data < String def mask_native(payload, mask) ::WebSocket::Native::Data.mask(payload, mask) end end end module Native class Data def self.mask(payload, mask) @instance ||= new @instance.mask(payload, mask) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
websocket-native-1.0.0-java | lib/websocket-native.rb |
websocket-native-1.0.0 | lib/websocket-native.rb |