Fork me on GitHub
#slack-help
<
2016-09-05
>
dpsutton18:09:09

It is basically just a websockets spinning and listening. You make your own handlers and define what you care about and it does the rest

dpsutton18:09:25

There's tons of room for improvement and making it cleaner

eslachance18:09:33

Ooooh that is precisely what I was looking for ^_^

dpsutton18:09:38

Verma's version allows for websockets or webserver

dpsutton18:09:48

Mine is only websockets and has a keep alive ping which is necessary

eslachance18:09:29

I shall go from both. I needed to understand sockets and events in the context of clojure.

dpsutton18:09:54

no real sockets you need to understand

dpsutton18:09:08

it opens up and listens, and when something comes in, dumps it on the input channel

dpsutton18:09:14

and you dump your output on the output channel

dpsutton18:09:31

it doesn't use events, just a simple go-loop listening on 1) input from channel, and if you can-handle?, it dumps it on the input channel to your mechanism and 2) output from your channel of what you do with it

eslachance18:09:37

I kinda sorta want to make my own library for Discord so I need to understand how to implement a few things.