src/components/ui/CommandTerminal.jsx
Function connectTerminal
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const connectTerminal = () => {
const agentServiceProtocol = Configuration.isSecureTransportEnabled() ? 'wss' : 'ws';
const agentServiceHostPort = Configuration.getAgentServiceHostPort();
const webSocket = new WebSocket(`${agentServiceProtocol}://${agentServiceHostPort}/term?token=` + user.access_token);
webSocket.binaryType = 'arraybuffer';
- Create a ticketCreate a ticket