Skip to content

A naive demo for an WebSocket smart cell for Elixir LiveBook

Notifications You must be signed in to change notification settings

chgeuer/kino_websocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kino.WebSocket

A simple smart cell for Kino that allows you to connect to a WebSocket server and send/receive messages.

To use this, you need to install Livebook on your computer, create a new notebook, add this library ({:kino_websocket, github: "chgeuer/kino_websocket"}) to the dependencies, and add the "WebSocket Client" smart cell.

Screenshot of the smart cell

Installation

The package can be installed by adding kino_websocket to your list of dependencies in the Mix.install/2 task:

Mix.install([
  {:kino_websocket, github: "chgeuer/kino_websocket"}
])

I'm not sure if this package will be published to Hex.pm, so for now you can just clone the repo and use it directly. Other smart cells like merquery are much cleaner with respect to views and state management, while this one is currently a hot JavaScript mess 🙄.

Demo GIF

Screenshot of the smart cell