ChannelService.RegisterMessageHandler

Switch to Manual
public static Action RegisterMessageHandler (string channelName, Action<int,byte[]> handler);

Parameters

channelNameThe name of the channel.
handlerThe handler that processes messages.

Returns

Action An action that you can use to unregister the handler from message processing (see ChannelService.UnregisterMessageHandler).

Description

Registers a handler to process all incoming messages on a specific channel.