mirror of
https://github.com/besterprotocol/besterd
synced 2023-12-13 21:00:32 +01:00
WIP
This commit is contained in:
parent
f4378cb428
commit
8df01992ce
3 changed files with 16 additions and 2 deletions
14
built_in_handlers.md
Normal file
14
built_in_handlers.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
Built-in handlers
|
||||
=================
|
||||
|
||||
There is a built-in handler for when the `type` field is set
|
||||
to `internal`.
|
||||
|
||||
The `data` field of the `payload` JSON object will be of the
|
||||
form:
|
||||
|
||||
````
|
||||
"data" : {
|
||||
|
||||
}
|
||||
````
|
|
@ -41,7 +41,7 @@ public class MessageHandler
|
|||
domainSocket = new Socket(AddressFamily.UNIX, SocketType.STREAM);
|
||||
|
||||
/* Bind it to the socket path */
|
||||
domainSocket.connect(new UnixAddress(socketPath));
|
||||
domainSocket.connect(new UnixAddressx(socketPath));
|
||||
}
|
||||
|
||||
private static string[] getAvailableTypes(JSONValue handlerBlock)
|
||||
|
|
|
@ -4,7 +4,7 @@ import server.types;
|
|||
import std.conv : to;
|
||||
import std.socket : SocketOSException;
|
||||
import utils.debugging : debugPrint;
|
||||
import std.stdio : File, writeln;
|
||||
import std.stdio : File,;
|
||||
import std.json : parseJSON, JSONValue;
|
||||
|
||||
JSONValue getConfig(string configurationFilePath)
|
||||
|
|
Loading…
Reference in a new issue