forked from dromara/orion-visor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from lijiahangmax/dev
Dev
- Loading branch information
Showing
66 changed files
with
9,986 additions
and
9,714 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#/bin/bash | ||
version=2.0.0 | ||
version=2.0.1 | ||
docker build -t orion-visor-redis:${version} . | ||
docker tag orion-visor-redis:${version} registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-redis:${version} | ||
docker push registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-redis:${version} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# orion-visor <small>2.0.0</small> | ||
# orion-visor <small>2.0.1</small> | ||
|
||
> 一款开箱即用的运维平台。 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
118 changes: 118 additions & 0 deletions
118
.../src/main/java/com/orion/visor/framework/websocket/core/session/WebSocketSyncSession.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
package com.orion.visor.framework.websocket.core.session; | ||
|
||
import org.springframework.http.HttpHeaders; | ||
import org.springframework.web.socket.CloseStatus; | ||
import org.springframework.web.socket.WebSocketExtension; | ||
import org.springframework.web.socket.WebSocketMessage; | ||
import org.springframework.web.socket.WebSocketSession; | ||
|
||
import java.io.IOException; | ||
import java.net.InetSocketAddress; | ||
import java.net.URI; | ||
import java.security.Principal; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
/** | ||
* web socket 同步会话 | ||
* | ||
* @author Jiahang Li | ||
* @version 1.0.0 | ||
* @since 2024/5/20 10:12 | ||
*/ | ||
public class WebSocketSyncSession implements WebSocketSession { | ||
|
||
private final WebSocketSession delegate; | ||
|
||
public WebSocketSyncSession(WebSocketSession delegate) { | ||
this.delegate = delegate; | ||
} | ||
|
||
@Override | ||
public String getId() { | ||
return this.delegate.getId(); | ||
} | ||
|
||
@Override | ||
public URI getUri() { | ||
return this.delegate.getUri(); | ||
} | ||
|
||
@Override | ||
public HttpHeaders getHandshakeHeaders() { | ||
return this.delegate.getHandshakeHeaders(); | ||
} | ||
|
||
@Override | ||
public Map<String, Object> getAttributes() { | ||
return this.delegate.getAttributes(); | ||
} | ||
|
||
@Override | ||
public Principal getPrincipal() { | ||
return this.delegate.getPrincipal(); | ||
} | ||
|
||
@Override | ||
public InetSocketAddress getLocalAddress() { | ||
return this.delegate.getLocalAddress(); | ||
} | ||
|
||
@Override | ||
public InetSocketAddress getRemoteAddress() { | ||
return this.delegate.getRemoteAddress(); | ||
} | ||
|
||
@Override | ||
public String getAcceptedProtocol() { | ||
return this.delegate.getAcceptedProtocol(); | ||
} | ||
|
||
@Override | ||
public void setTextMessageSizeLimit(int messageSizeLimit) { | ||
this.delegate.setTextMessageSizeLimit(messageSizeLimit); | ||
} | ||
|
||
@Override | ||
public int getTextMessageSizeLimit() { | ||
return this.delegate.getTextMessageSizeLimit(); | ||
} | ||
|
||
@Override | ||
public void setBinaryMessageSizeLimit(int messageSizeLimit) { | ||
this.delegate.setBinaryMessageSizeLimit(messageSizeLimit); | ||
} | ||
|
||
@Override | ||
public int getBinaryMessageSizeLimit() { | ||
return this.delegate.getBinaryMessageSizeLimit(); | ||
} | ||
|
||
@Override | ||
public List<WebSocketExtension> getExtensions() { | ||
return this.delegate.getExtensions(); | ||
} | ||
|
||
@Override | ||
public void sendMessage(WebSocketMessage<?> message) throws IOException { | ||
synchronized (this.delegate) { | ||
this.delegate.sendMessage(message); | ||
} | ||
} | ||
|
||
@Override | ||
public boolean isOpen() { | ||
return this.delegate.isOpen(); | ||
} | ||
|
||
@Override | ||
public void close() throws IOException { | ||
this.delegate.close(); | ||
} | ||
|
||
@Override | ||
public void close(CloseStatus status) throws IOException { | ||
this.delegate.close(status); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
VITE_API_BASE_URL= 'http://127.0.0.1:9200/orion-visor/api' | ||
VITE_WS_BASE_URL= 'ws://127.0.0.1:9200/orion-visor/keep-alive' | ||
VITE_APP_VERSION= '2.0.0' | ||
VITE_APP_VERSION= '2.0.1' | ||
VITE_SFTP_PREVIEW_MB= 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
VITE_API_BASE_URL= '/orion-visor/api' | ||
VITE_WS_BASE_URL= '/orion-visor/keep-alive' | ||
VITE_APP_VERSION= '2.0.0' | ||
VITE_APP_VERSION= '2.0.1' | ||
VITE_SFTP_PREVIEW_MB= 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.