I use spring websocket port 8080 and
angular 5 port 4200.
and
and angular 5
Chrom console when running:
I have a Send button on html. When click Send button, it trigger sendMessage() method. But when I click it (mean when sending message), the spring console print:
WebSocketSession[0 current WS(0)-HttpStream(0)-HttpPoll(0), 0 total, 0 closed abnormally (0 connect failure, 0 send limit, 0 transport error)], stompSubProtocol[processed CONNECT(0)-CONNECTED(0)-DISCONNECT(0)], stompBrokerRelay[null], inboundChannel[pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0], outboundChannelpool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0], sockJsScheduler[pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 0]
but I expect spring console should print:
System.out.println("message socket: " + message);
and angular 5 didn't receive any reply...
Please help me...thanks you very much