Skip to content

Commit 658e5f5

Browse files
committed
Initial
1 parent 5561ef1 commit 658e5f5

File tree

3 files changed

+27
-22
lines changed

3 files changed

+27
-22
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## da Websocket Client ##
1+
# da Websocket Client
22

33
I googled to find WS Client that support both WS/WSS with specified certificate file but not found anyone.<br>I don't want wasting time for finding it anymore. So, I decided to make this tool for work and those who needed.
44

5-
#### Features #####
5+
## Features
66

77
* Support both `Websocket (WS)` & `Websocket Secure (WSS)` protocol
88
* Support send/receive/display `Text` & `Binary` data type
@@ -11,21 +11,21 @@ I googled to find WS Client that support both WS/WSS with specified certificate
1111
* Support cross-platform like Windows, Linux, macOS, etc
1212
* Others
1313

14-
#### Instructions #####
14+
## Instructions
1515

16-
> 1. Open a CMD Window in the `da-Websocket-Client` folder
16+
> 1. Open a CMD/Terminal Window in the `da-Websocket-Client` folder
1717
> 2. Run the command `pip install -r requirements.txt` to install required packages
1818
> 3. Run the command `python app.py` to run app from the source code
19-
> 4. *(Optional) Run the command `PyInstaller --clean --distpath=bin da-Websocket-Client.spec` to build executable file*
20-
> 3. *(Optional) Run the command file `create-package.cmd` to create a zip package (for Windows) or [download](https://github.com/vic4key/da-Websocket-Client/releases) directly from repository*
19+
> 4. *(Optional) To build executable file, run the command `pyinstaller --clean --distpath=bin da-Websocket-Client.spec`*
20+
> 3. *(Optional) To create a package, run the command file `create-package.cmd` (for Windows) or `./create-package.sh` (for Linux or macOS) or directly [download](https://github.com/vic4key/da-Websocket-Client/releases) packages here*
2121
2222
*Note: (Optional) The sample SSL file for local machine (`localhost` & `127.0.0.1`) can be found in the `preferences` folder or you can generate your own SSL file by run the following command*
2323
> openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes -keyout local.pem -out local.pem -subj "/CN=localhost" -addext "subjectAltName=IP:127.0.0.1"
2424
25-
#### Screenshots #####
25+
## Screenshots
2626

2727
![](screenshots/app.png)
2828

29-
#### Contact
29+
## Contact
3030

31-
Feel free to contact via [Twitter](https://twitter.com/vic4key) / [Gmail](mailto:[email protected]) / [Blog](https://blog.vic.onl/) / [Website](https://vic.onl/)
31+
Feel free to contact via [Twitter](https://twitter.com/vic4key) / [Gmail](mailto:[email protected]) / [Blog](https://blog.vic.onl/) / [Website](https://vic.onl/)

create-package.cmd

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
@ECHO OFF
22

3-
SET FILE_NAME=da-Websocket-Client
3+
SET PATH=%PATH%;C:\Program Files\WinRAR;C:\Program Files (x86)\WinRAR
44

5-
IF NOT EXIST "bin" (
5+
IF EXIST "bin" (
6+
ECHO Creating package ...
7+
XCOPY /Y /E preferences\* bin\preferences\
8+
WinRAR a -afzip -r "bin.zip" "bin"
9+
ECHO Finished
10+
) ELSE (
611
ECHO ERROR: Missing 'bin' folder. See the instruction to build project first.
7-
GOTO L_EXIT
812
)
913

10-
ECHO Creating .zip package ...
11-
12-
XCOPY /Y /E preferences\* bin\preferences\
13-
14-
SET PATH=%PATH%;C:\Program Files\WinRAR;C:\Program Files (x86)\WinRAR
15-
WinRAR a -afzip -r "bin.zip" "bin"
16-
17-
ECHO Finished
18-
19-
:L_EXIT
2014
PAUSE

create-package.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
if [ -d "bin" ]
4+
then
5+
echo "Creating package ..."
6+
cp -a preferences/. bin/preferences/
7+
tar -czvf bin.tar.gz bin/
8+
echo "Finished"
9+
else
10+
echo "ERROR: Missing 'bin' folder. See the instruction to build project first."
11+
fi

0 commit comments

Comments
 (0)