class RichCrystal::Ipc

Defined in:

rich-crystal/ipc.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Create the UNIXSocket with ipc_path and socket name 'discord-ipc-0'


[View source]

Instance Method Detail

def ipc_path : String #

Return where is the discord-ipc-0 socket with different environment variables


[View source]
def send(opcode : Opcode, payload : String) : String #

Send a payload to the UNIXSocket with the opcode, returns the JSON response


[View source]