mirror of
				https://github.com/onyx-and-iris/obsws-ruby.git
				synced 2025-10-30 16:31:45 +00:00 
			
		
		
		
	Compare commits
	
		
			No commits in common. "662f14282fb7bcfdf1fa9cbaf4b1d61f7341c1d9" and "7e580dc91a39ad186da644fed8adf66a50970efd" have entirely different histories.
		
	
	
		
			662f14282f
			...
			7e580dc91a
		
	
		
							
								
								
									
										13
									
								
								lib/obsws.rb
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								lib/obsws.rb
									
									
									
									
									
								
							| @ -25,12 +25,19 @@ module OBSWS | |||||||
|   class OBSWSRequestError < OBSWSError |   class OBSWSRequestError < OBSWSError | ||||||
|     attr_reader :req_name, :code |     attr_reader :req_name, :code | ||||||
| 
 | 
 | ||||||
|     def initialize(req_name, code, comment) |     def initialize(req_name, code, msg) | ||||||
|       @req_name = req_name |       @req_name = req_name | ||||||
|       @code = code |       @code = code | ||||||
|       message = "Request #{@req_name} returned code #{@code}." |       @msg = msg | ||||||
|       message << " With message: #{comment}" if comment |  | ||||||
|       super(message) |       super(message) | ||||||
|     end |     end | ||||||
|  | 
 | ||||||
|  |     def message | ||||||
|  |       msg = [ | ||||||
|  |         "Request #{@req_name} returned code #{@code}." | ||||||
|  |       ] | ||||||
|  |       msg << "With message: #{@msg}" if @msg | ||||||
|  |       msg.join(" ") | ||||||
|  |     end | ||||||
|   end |   end | ||||||
| end | end | ||||||
|  | |||||||
| @ -29,8 +29,8 @@ module OBSWS | |||||||
|       port = kwargs[:port] || 4455 |       port = kwargs[:port] || 4455 | ||||||
|       @password = kwargs[:password] || "" |       @password = kwargs[:password] || "" | ||||||
|       @subs = kwargs[:subs] || 0 |       @subs = kwargs[:subs] || 0 | ||||||
|       @identified = Identified.new |  | ||||||
|       setup_driver(host, port) and start_driver |       setup_driver(host, port) and start_driver | ||||||
|  |       @identified = Identified.new | ||||||
|       WaitUtil.wait_for_condition( |       WaitUtil.wait_for_condition( | ||||||
|         "successful identification", |         "successful identification", | ||||||
|         delay_sec: 0.01, |         delay_sec: 0.01, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user