Open test-aik opened 1 year ago
// test.js const WebSocket = require('ws');
const headers = { 'ngrok-skip-browser-warning': 'true' };
const socket = new WebSocket('ws://a335-98-196-132-44.ngrok-free.app/ws/video/', { headers: headers });
socket.on('open', function open() { console.log('Connected to the server'); const message = JSON.stringify({ 'file_name': 'a_test_4sec.mov' }); socket.send(message); });
socket.on('message', function incoming(data) { console.log('Message from server:', data); });
socket.on('close', function close(code, reason) {
console.log(Disconnected: ${code} ${reason}
);
});
socket.on('error', function error(e) { console.error('WebSocket error:', e.message); });
input={ "kdt": 5, "mass": 80, "ycom": 1.025, "video": "https://firebasestorage.googleapis.com/v0/b/aikonweb001.appspot.com/o/demo_running.mov?alt=media&token=708843fc-ec1c-4389-9562-54af64f5ec94", "indent": 20, "kinematic": True, "shoes_size": "12.0M", "skip_frame": 0, "video_flip": False, "frame_count": 400, "lleg_length": 0.91, "rleg_length": 0.91, "start_frame": 0, "model_config": "model1" },
version: 2 authtoken: 2YE9EFBsNx9cvSJiZ03ze4lE5Fg_3BRf99kWgc9jfJYKtmy5Y tunnels: my_tunnel_name: labels:
https://e1e8-98-196-132-44.ngrok-free.app