class RichCrystal::Ipc
- RichCrystal::Ipc
- Reference
- Object
Defined in:
rich-crystal/ipc.crConstructors
-
.new
Create the UNIXSocket with ipc_path and socket name 'discord-ipc-0'
Instance Method Summary
-
#ipc_path : String
Return where is the discord-ipc-0 socket with different environment variables
-
#send(opcode : Opcode, payload : String) : String
Send a payload to the UNIXSocket with the opcode, returns the JSON response
Constructor Detail
Instance Method Detail
def ipc_path : String
#
Return where is the discord-ipc-0 socket with different environment variables
Send a payload to the UNIXSocket with the opcode, returns the JSON response