Home Reference Source
public class | source

MessageServer

Messaging Class for the Server component.

Constructor Summary

Public Constructor
public

Constructor for the MessageServer.

Member Summary

Public Members
public
public

sendMessage(id: string, topic: string, message: string): *

Sends a message to a specific peer.

public

sock: *

Describes the kind of socket.

public

startListening(sock: sock): *

Listens to incoming events on the socket.

Public Constructors

public constructor() source

Constructor for the MessageServer.

Public Members

public returnConnectedClients: Array: * source

Return:

Array

Method that returns all currently connected clients as array.

public sendMessage(id: string, topic: string, message: string): * source

Sends a message to a specific peer.

public sock: * source

Describes the kind of socket. In this case a router socket.

public startListening(sock: sock): * source

Listens to incoming events on the socket.