我有一个小的基于JHipster的应用程序的问题,我正试图在Docker容器内的服务器上运行。问题出在Websocket连接:VM1772:35 WebSocket connection to 'ws://example.com/websocket/tracker/011/oxjwhn1s/websocket?access_token=ey…_TUTlIQeihPamU9Cr4AELuIqgnxZlAExhpBzRGwTtSBsQtC1_uMmwttUYgMmvhdbZhMLCS2RoA' failed: Error during WebSocket handshake: Un
我正试图在Openshift上托管一个web应用程序。我正在使用websocket来处理所有的连接。但是,我不知道我的套接字url要输入什么值。我有一个.js文件,内容如下:
...
// socket connection url and port
var socket_url = '192.168.8.102';
var port = '8080';
$(document).ready(function() {
$("#form_submit, #form_send_message").submit(function(e) {
我已经这样做了好几天了,我似乎找不到解决这个问题的办法。我有一个实时的网站,我最近安装了ssl证书,并使该网站在https上可用。
真正奇怪的是,一开始这个网站在https上运行得很好。在大约一天左右的时间里,它运行得很好。但是第二天我检查了一下,这个网站给了我这个错误:
WebSocket connection to 'wss://domain.com/sockjs/421/dto72qfy/websocket' failed: WebSocket is closed before the connection is established.
导航栏和侧边栏都会加载,但内容不
我试图在Java (Tomcat 9)中设置WebSocket,而不进行类路径扫描,但我仍然遇到了以下错误:
javax.websocket.DeploymentException: Multiple Endpoints may not be deployed to the same path [/test/{accountId}] : existing endpoint was [class probotdev.websocket.Test] and new endpoint is [class probotdev.websocket.Test]
at org.apache.tom