Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hosseinmirzapur/fiber-websocket-chat-system
https://github.com/hosseinmirzapur/fiber-websocket-chat-system
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hosseinmirzapur/fiber-websocket-chat-system
- Owner: hosseinmirzapur
- Created: 2022-12-23T01:10:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-23T12:58:18.000Z (about 2 years ago)
- Last Synced: 2024-06-21T16:55:16.656Z (7 months ago)
- Language: Go
- Size: 36.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minimal chat application for [Fiber](https://github.com/gofiber/fiber) with [Fiber WebSocket](https://github.com/gofiber/websocket)
Uses a client hub,
somewhat similar to the
[gorilla chat example](https://github.com/gorilla/websocket/tree/master/examples/chat)
and
[fasthttp chat example](https://github.com/fasthttp/websocket/tree/master/_examples/chat).## Usage
`go run .` and use postman to generate key and put it in browser's ``localstorage`` to connect
or e.g.
`go run . -addr=3000` and provide a front-end to the chat-application using
[Websocket library of Javascript](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API)
to connect to the [websocket on localhost](ws://localhost:3000) endpoint.