Skip to content

WASM websocket/regexp notes

  1. WASM websocket
  TWasmWebsocketResult = longint;
  TWasmWebsocketID = longint;
  TBuffer = longint;

TBuffer is too generic. will pollute auto-completion where it's not ok.

  1. websocket
  websocketFN_Allocate = 'allocate';
  websocketFN_DeAllocate = 'deallocate';
  websocketFN_close = 'close';
  websocketFN_send = 'send';

why to make const if they are used only once?

  1. 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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information