The blogger encountered this problem when writing the KCC-related demo of photon Fusion. The solution is as follows:
Open the package manager interface, select Build-in in the upper left corner, pull down to find UnityWebSocket and activate it in the lower right corner (Enable), reopen the compiler, and end.