public void SetChatEventListeners() { int result; #if UNITY_WEBGL && !UNITY_EDITOR result = SocketIOJSLib.SetChatEventListeners(); #else result = socketSim.SetChatEventListeners(); #endif if (result != SocketIOJSLib.SUCCESS) { connectionAdapter.DisplaySocketIOAdapterError("SetChatEventListeners failed."); } }