https://github.com/shlomnissan/websocket-serve
🐉 Simple Websocket chat server using Boost
https://github.com/shlomnissan/websocket-serve
asio boost cpp cpp17 websocket-server
Last synced: over 1 year ago
JSON representation
🐉 Simple Websocket chat server using Boost
- Host: GitHub
- URL: https://github.com/shlomnissan/websocket-serve
- Owner: shlomnissan
- Created: 2019-12-12T17:33:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-12T17:55:10.000Z (over 6 years ago)
- Last Synced: 2025-01-14T23:05:36.747Z (over 1 year ago)
- Topics: asio, boost, cpp, cpp17, websocket-server
- Language: C++
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# websocket-serve
A simple Websocket server written in C++ using Boost.Axios and Boost.Beast. You can connect to it using any Websocket client and post messages. Messages will be broadcasted to all connected sockets. This repository is a good starting point for building up application-specific servers that support HTTP and Websocket protocols using C++ and Boost.
## Set up a development environment using Docker
#### Build the image
```
docker build -t websocket-serve .
```
#### Run the container
```
docker run -d -P --name websocket-serve-dev websocket-serve
```
#### Run bash to set up a password for root
```
docker exec -it websocket-serve-dev /bin/bash
$ passwd root
$ exit
```
#### Log in using SSH
```
ssh root@localhost -p {$PORT}
```