setイベントに次どっちのターンかの情報を含めた
This commit is contained in:
		
							parent
							
								
									f8fb30b792
								
							
						
					
					
						commit
						79b20a3729
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -170,7 +170,9 @@ export default function(request: websocket.request, connection: websocket.connec
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		publishOthelloGameStream(gameId, 'set', log);
 | 
							publishOthelloGameStream(gameId, 'set', Object.assign(log, {
 | 
				
			||||||
 | 
								next: o.turn
 | 
				
			||||||
 | 
							}));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (o.isEnded) {
 | 
							if (o.isEnded) {
 | 
				
			||||||
			publishOthelloGameStream(gameId, 'ended', {
 | 
								publishOthelloGameStream(gameId, 'ended', {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue