Skip to content

Simple example of a websocket server without using Phoenix framework

License

Notifications You must be signed in to change notification settings

Hubix9/Elixir-websocket-minimal-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example WebsocketServer

Description

This repository serves as a minimal example of an elixir websocket server.

plug_cowboy is the only dependency of this project. this project does not use Phoenix framework.

This project has been tested with:

Erlang/OTP 24
Elixir 1.13.4 (compiled with Erlang/OTP 22)

Installation

Clone this repository and run:

mix deps.get
mix run --no-halt

The websocket server endpoint is hosted at:

ws://127.0.0.1:3000/ws

Upon connecting, the server will send message "Hello from websocket server!" to all connected sockets in a 1 second interval.

Useful resources:

Credits:

About

Simple example of a websocket server without using Phoenix framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages