Finalizado servidor
This commit is contained in:
		
							parent
							
								
									b5967b13ac
								
							
						
					
					
						commit
						f916e8e988
					
				@ -1,4 +1,4 @@
 | 
			
		||||
import { Server, loadPackageDefinition } from "@grpc/grpc-js";
 | 
			
		||||
import { Server, ServerCredentials, loadPackageDefinition } from "@grpc/grpc-js";
 | 
			
		||||
import { loadSync } from "@grpc/proto-loader";
 | 
			
		||||
 | 
			
		||||
// Ler as definições do protobuffer
 | 
			
		||||
@ -18,3 +18,6 @@ grpcServer.addService(tasksProto.TaskService.service, {
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
const serverAddress = '0.0.0.0:5050';
 | 
			
		||||
grpcServer.bindAsync(serverAddress, ServerCredentials.createInsecure(), () => {
 | 
			
		||||
  console.log("Servidor está funcionando bem...")
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user