WASM websocket/regexp notes
- WASM websocket
TWasmWebsocketResult = longint;
TWasmWebsocketID = longint;
TBuffer = longint;
TBuffer is too generic. will pollute auto-completion where it's not ok.
- websocket
websocketFN_Allocate = 'allocate';
websocketFN_DeAllocate = 'deallocate';
websocketFN_close = 'close';
websocketFN_send = 'send';
why to make const if they are used only once?
- WASM regexp
Function StringToFlags(S : String; IgnoreUnknown : Boolean = True) : Longint;
Function FlagsToString(S : Longint) : String;
Better to add some prefix to them. To not pollute auto-completion.
const
for S: string
is needed.
Edited by Alexey Torgashin