Class SocketClientHandler
In: daimoku-server/matrix-extensions.rb
Parent: Object

Imported into the Simulation

The handler class for the SocketClient class. The Player should implement on_input to set up any sort of client-side protocol that the Player would be interested in.

Methods

new   on_input  

Public Class methods

Initialize with the Player‘s IO object, for example:

a = SocketClientHandler.new IOjoe128384H23

Public Instance methods

Called by SocketClient when input is detected on the socket The Player should override this method if the Player wants to create a Protocol.

line : the text received from the socket

What ever is returned from on_input should be a String

[Validate]