Sha256: c2fc23a3837be9a5b8c827e4461cbf333f1974e84581636dd564bef8c31ad4f9
Contents?: true
Size: 931 Bytes
Versions: 28
Compression:
Stored size: 931 Bytes
Contents
# -*- encoding: utf-8 -*- # # Reference: https://github.com/stompgem/stomp/wiki/extended-ssl-overview # require "rubygems" require "stomp" # # == Example: Use Ruby Supplied Ciphers # # If you use SSLParams, and need the _default_ Ruby ciphers, this is how. # # NOTE: JRuby users may find that this is a *required* action. YMMV. # class ExampleRubyCiphers # Initialize. def initialize end # Run example. def run ssl_opts = Stomp::SSLParams.new(:use_ruby_ciphers => true) # Plus other parameters as needed # # SSL Use Case: Using default Stomp ciphers # hash = { :hosts => [ {:login => 'guest', :passcode => 'guest', :host => 'localhost', :port => 61612, :ssl => ssl_opts}, ] } # puts "Connect starts, SSL , Use Default Ruby Ciphers" c = Stomp::Connection.new(hash) puts "Connect completed" # c.disconnect end end # e = ExampleRubyCiphers.new e.run
Version data entries
28 entries across 26 versions & 2 rubygems