Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 1023 Bytes

README.md

File metadata and controls

26 lines (14 loc) · 1023 Bytes

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