Synchronet v3.19b-Win32 (install) has been released (Jan-2022).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
service:index [2010/03/10 09:59] digitalmanservice:index [2018/03/01 12:21] – old revision restored digital man
Line 5: Line 5:
 ===== Service Types ===== ===== Service Types =====
  
-There four types of services supported:+There are four types of services currently supported:
  
   - Dynamic JavaScript (the most common service type)   - Dynamic JavaScript (the most common service type)
Line 15: Line 15:
 Additional methods and properties available to Synchronet Services written in JavaScript: Additional methods and properties available to Synchronet Services written in JavaScript:
  
-FIXME+==== Properties ==== 
 + 
 +^Property  ^Type     ^Description^ 
 +|''logged_in'' |boolean|Indication if user has successfully authenticated or not| 
 +|''datagram''  |string |Contents of received UDP datagram (when applicable)| 
 + 
 +==== Methods ==== 
 + 
 +Along with the [[http://synchro.net/docs/jsobjs.html#global_methods|common global methods]], JavaScript services include support for the following methods: 
 + 
 +^Method   ^Returns ^Usage ^Description^ 
 +|''login''|boolean|''login(user, password [,increment_logins=//false//])''|Attempt to authenticate as specified user (name or number)| 
 +|''logout''|boolean|''logout()''                                          |Logout currently authenticated user| 
 +|''server.client_add''|void|''server.client_add(//Socket//, [user], [host])''    |Register client based on specified socket connection, with optional username and hostname| 
 +|''server.client_update''|void|''server.client_update(//Socket//, [user], [host])''|Update client based on specified socket connection, with optional username and hostname| 
 +|''server.client_remove''|void|''server.client_remove(//Socket//)''    |Unregister client based on specified socket connection|
  
 ===== Configuration ===== ===== Configuration =====