ThreadServer

ThreadServer

new ThreadServer()

Description:
  • Handle socket as a server

Source:

Methods

addTask()

Description:
  • Add task to the iddle process.
    If none is iddle, will wait until there is iddle process

Source:

addTask()

Description:
  • Add task to the iddle process.
    If none is iddle, will wait until there is iddle process

Source:

addTask()

Description:
  • Add task to the iddle process.
    If none is iddle, will wait until there is iddle process

Source:

getIddleThread()

Description:
  • Get random iddle task

Source:

getIddleThread()

Description:
  • Get random iddle task

Source:

getReadyState()

Description:
  • Return true if the server is ready

Source:

getReadyState()

Description:
  • Return true if the server is ready

Source:

startThread(num, options)

Description:
  • Open n number of thread
    If some thread are already opened, will make sure that the opened thread not less then the number

Source:
Parameters:
Name Type Default Description
num 1
options Object
Properties
Name Type Attributes Default Description
force Boolean <optional>
false
addons Array.<String> <optional>

startThread(num, options)

Description:
  • Open n number of thread
    If some thread are already opened, will make sure that the opened thread not less then the number

Source:
Parameters:
Name Type Default Description
num 1
options Object
Properties
Name Type Attributes Default Description
force Boolean <optional>
false
addons Array.<String> <optional>

ThreadServer

new ThreadServer()

Description:
  • Handle socket as a server

Source:

Methods

addTask()

Description:
  • Add task to the iddle process.
    If none is iddle, will wait until there is iddle process

Source:

addTask()

Description:
  • Add task to the iddle process.
    If none is iddle, will wait until there is iddle process

Source:

addTask()

Description:
  • Add task to the iddle process.
    If none is iddle, will wait until there is iddle process

Source:

getIddleThread()

Description:
  • Get random iddle task

Source:

getIddleThread()

Description:
  • Get random iddle task

Source:

getReadyState()

Description:
  • Return true if the server is ready

Source:

getReadyState()

Description:
  • Return true if the server is ready

Source:

startThread(num, options)

Description:
  • Open n number of thread
    If some thread are already opened, will make sure that the opened thread not less then the number

Source:
Parameters:
Name Type Default Description
num 1
options Object
Properties
Name Type Attributes Default Description
force Boolean <optional>
false
addons Array.<String> <optional>

startThread(num, options)

Description:
  • Open n number of thread
    If some thread are already opened, will make sure that the opened thread not less then the number

Source:
Parameters:
Name Type Default Description
num 1
options Object
Properties
Name Type Attributes Default Description
force Boolean <optional>
false
addons Array.<String> <optional>

ThreadServer

new ThreadServer()

Description:
  • Handle socket as a server

Source:

Methods

addTask()

Description:
  • Add task to the iddle process.
    If none is iddle, will wait until there is iddle process

Source:

addTask()

Description:
  • Add task to the iddle process.
    If none is iddle, will wait until there is iddle process

Source:

addTask()

Description:
  • Add task to the iddle process.
    If none is iddle, will wait until there is iddle process

Source:

getIddleThread()

Description:
  • Get random iddle task

Source:

getIddleThread()

Description:
  • Get random iddle task

Source:

getReadyState()

Description:
  • Return true if the server is ready

Source:

getReadyState()

Description:
  • Return true if the server is ready

Source:

startThread(num, options)

Description:
  • Open n number of thread
    If some thread are already opened, will make sure that the opened thread not less then the number

Source:
Parameters:
Name Type Default Description
num 1
options Object
Properties
Name Type Attributes Default Description
force Boolean <optional>
false
addons Array.<String> <optional>

startThread(num, options)

Description:
  • Open n number of thread
    If some thread are already opened, will make sure that the opened thread not less then the number

Source:
Parameters:
Name Type Default Description
num 1
options Object
Properties
Name Type Attributes Default Description
force Boolean <optional>
false
addons Array.<String> <optional>