Skip to content

robinvd/rasa-ext-websockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rasa-ext-websockets

websocket extension for Rasa

Install

add this to your stack.yaml

packages:
        - '.'
        - location:
            git: https://github.com/robinvd/rasa-ext-websockets
            commit: 890916e0902091a6716f151e8f698d79dfa1f99a
          extra-dep: true

add this to your config file


import Rasa.Websockets

...

main = rasa $ do

  ...

  networkServer

now you can use the "Send" event listner and the "Message" event

function used in the example gif:

main = do
  ...
  onBufTextChanged upload

...

upload bufRef _ = do
   bufDo_ bufRef $ getText >>= dispatchEvent . SendAll . Y.toText

About

websocket extension for Rasa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published