mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Format websocket doc
This commit is contained in:
		
							parent
							
								
									f258f28689
								
							
						
					
					
						commit
						40b8411f25
					
				
					 1 changed files with 17 additions and 16 deletions
				
			
		|  | @ -18,6 +18,7 @@ with different routes. | |||
| Let's access the socket and create a simple echo server. | ||||
| 
 | ||||
| ```ruby | ||||
| # Matches "/" | ||||
| ws "/" do |socket| | ||||
|   # Send welcome message to the client | ||||
|   socket.send "Hello from Kemal!" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue