Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

starlog/HttpAndWebsocketSample

Repository files navigation

개요: windows tray icon application.
http 및 websocket 수신 (http://localhost:8080, http://localhost:8080/ws)
http://localhost:8080/?data=abcde 로 호출받으면, 연결된 websocket 클라이언트에게 {"data":"abcde"}로 데이터 전송

폴더 설명:
TrayIconAppTest: C# 코드 (테스트 서버)
nodeClient: node.js websocket 테스트 클라이언트

어플리케이션 컴파일:
Visual Studio Community 2022
Nuget package: Newtonsoft.Json
Target .net version: 4.7.2
(Release.zip에 실행 파일 들어있음)

node.js 어플리케이션 실행
Node.js, npm 설치되어 있어야 함.
해당 폴더에서 npm install
node test.js 로 실행

실행 방법
이 repository를 clone 한다. (git clone https://github.com/starlog/HttpAndWebsocketSample.git)
Release.zip을 풀어서 들어있는 TrayIconAppTest.exe를 실행한다. Tray에 어플리케이션이 실행된다. 어플리케이션 이름은 "WebSocket and HTTP Server" 이다.
nodeClient 폴더로 이동해서 "npm install"로 라이브러리 설치를 하고, "node test.js"로 테스트 웹소켓 클라이언트를 실행한다.
웹 브라우져나 postman으로 http://localhost:8080?data=1234567890 (GET)로 연결한다.
웹소켓 클라이언트가 {"data":"1234567890" } 메시지를 수신하는 것을 확인한다.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /