error: no member named ‘CreateWebSocket’ in ‘FWebSocketsModule’ UATHelper: Packaging (HTML5): WebSocket = FWebSocketsModule::Get().CreateWebSocket();
It works fine in the editor, it just gives this error when packing for HTML5 export.
You can Add “PublicDefinitions.Add(“WITH_WEBSOCKETS=1”);” to your module.build.cs,then try to package again.