File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ GraphQLRxSwift provides an `ObservableEventStream` wrapper class that can be use
3232` EventStream `  requirements. A convenience method ` toEventStream `  is added to all Observable instances.
3333This class is used when defining subscription resolvers, as shown below:
3434
35- ``` 
35+ ``` swift 
3636func  subscribeUser (context arguments ->  EventStream<Any > {
3737    PublishSubject< Any > ().toEventStream ()
3838}
@@ -42,7 +42,7 @@ Also provided is a `ObservableSubscriptionEventStream` type alias that can be us
4242It is guaranteed that the stream returned by any subscription query whose resolver returns an ` ObservableEventStream `  will be a
4343` ObservableSubscriptionEventStream ` . For example:
4444
45- ``` 
45+ ``` swift 
4646let  subscriptionResult =  try  graphQLApi.subscribe (
4747    request : request,
4848    context : api.context ,
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments