0
I 있어요 - 다음으로 아래의 코드 변경 - 초안 [email protected] 악수, 거짓 거부 연결 -1을 폐쇄 :WSS 웹 소켓의 작성 문제
소켓 생성 coode
webClient = new APICWebClient(new URI(getWebSocketUrl(currentApic.IPAddress, port)), new Draft_17());
webClient.connect();
Constructor:
public APICWebClient(URI serverURI, Draft draft) {
super(serverURI, draft);
SSLContext sslContext = null;
try {
sslContext = SSLContext.getDefault();
} catch (NoSuchAlgorithmException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
setWebSocketFactory(new DefaultSSLWebSocketClientFactory(sslContext));
logger.info("Socket object created");
}
을
Draft_17. 내가 얻을 : 폐쇄 연결 -1,, 사실. 어떤 도움이라도 여기에서. 이것은 소켓 생성 중에 발생합니다.
어떻게 인증서를 찾지 않습니까? – Prakash