Comet

CTChat
A CTChat is xxxxxxxxx.
Instance Variables
initialize
Subclasses should redefine this method to perform initializations on instance creation
isLoggedIn
login:
Join the chat-room with the given username aString.
logout
Leave the chat-room.
message:
Send the message aString to the chat-room.
push:with:
pusher
renderChatInputOn:
renderChatMessagesOn:
renderChatOn:
renderChatPusherOn:
renderChatStatusOn:
renderContentOn:
renderLoginOn:
renderMessage:class:on:
style
Returns a CSS stylesheet associated with this component. This stylesheet will be added to <head> section of the html document so it will be global and not scoped.
This is done for all visible components (see class comment of WAComponent for what visible means).
Nice for demos but consider using WAFileLibrary or exernal files instead.
username
users
CTChatSession
A CTChatSession is xxxxxxxxx.
Instance Variables
username: <Object>
username
- xxxxx
username
username:
CTComet
A CTComet is xxxxxxxxx.
Instance Variables
pusher: <Object>
url: <Object>
pusher
- xxxxx
url
- xxxxx
connect
defaultArguments
defaultPrototype
defaultUrl
disconnect
headerField
initialize
Subclasses should redefine this method to perform initializations on instance creation
pusher
pusher:
reconnect:
terminator
url
url:
CTCounter
A CTCounter is xxxxxxxxx.
Instance Variables
decrease
increase
initialize
Subclasses should redefine this method to perform initializations on instance creation
model
pusher
renderContentOn:
update:
Update the number in all connected web browser. Only the first 4 lines are really needed, the rest adds some eye-candy and can simply be removed if not needed.
CTCounterModel
A CTCounterModel is xxxxxxxxx.
Instance Variables
count: <Object>
count
- xxxxx
count
count:
decrease
increase
initialize
Subclasses should redefine this method to perform initializations on instance creation
new
CTHandler
A CTHandler is xxxxxxxxx.
Instance Variables
context: <Object>
id: <Object>
pusher: <Object>
session: <Object>
socket: <Object>
context
- xxxxx
id
- xxxxx
pusher
- xxxxx
session
- xxxxx
socket
- xxxxx
basicConnect:
basicDisconnect
basicTerminate
connect:
id
initializeOn:session:context:
on:session:context:
push:
pusher
session
CTLibrary
A CTLibrary is xxxxxxxxx.
Instance Variables
cometJs
selectorsToInclude
The files represented by the selectors this method returns will be automatically added to the html <head> if the receiver is added to the respective Seaside application.
This makes only sense for CSS and JS files
CTPusher
A CTPusher is xxxxxxxxx.
Instance Variables
handlers: <Object>
mutex: <Object>
handlers
- xxxxx
mutex
- xxxxx
canvas
Answer a fake rendering canvas for this pusher.
handlers
Answer the current list of handlers.
initialize
Subclasses should redefine this method to perform initializations on instance creation
javascript:
Evaluate aBlock with an SUScript instance and pushes the resulting script-string aString to all associated handlers.
mutex
Answer the mutex in use with the reciever.
new
ping
Ping all the associated handlers.
pingProcess
push:
Push aString to all associated handlers.
register:
Register a new handler into this pusher.
shutDown
startUp
CTSession
A CTSession is xxxxxxxxx.
Instance Variables
handlers: <Object>
handlers
- xxxxx
cometRequest:
incomingRequest:
initialize
Subclasses should redefine this method to perform initializations on instance creation
registerPusher:context:
CometVWInfo
A CometVWInfo is xxxxxxxxx.
Instance Variables
addonName