Version: 2022.2

ChannelClient.GetOrCreateClient

切换到手册
public static MPE.ChannelClient GetOrCreateClient (string channelName);

参数

channelName The name of the channel to open. This matches the last part of a WebSocket URL. For example, "127.0.0.1:9090/<channelName>".

返回

ChannelClient Instance of the newly-created or existing ChannelClient.

描述

Creates a new ChannelClient on a specific channel. If a client already exists, this method gets the client.

This method does not automatically start clients that it creates. For information about starting a client, see ChannelClient.Start.


Did you find this page useful? Please give it a rating: