赞
踩
基于开源框架Fleck服务端的WebSocket协议的WSS操作配置
var webSocketServer = new WebSocketServer("wss://" + IP + ":" + Port); webSocketServer.Certificate = new System.Security.Cryptography.X509Certificates.X509Certificate2(“”xxx.pfx”, “password”, X509KeyStorageFlags.Exportable | X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.PersistKeySet);
4.最后客户端js访问Websocket
var socket1 = new WebSocket("wss://域名:端口/");
443端口不需要端口
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。