-
Notifications
You must be signed in to change notification settings - Fork 6
Troubleshooting
Igal edited this page Apr 12, 2017
·
3 revisions
The first thing you should do is enable logging by creating a log named websocket
in the Lucee Web Admin. For development, you should set the Log Level to DEBUG or TRACE.
Since the event handlers are called asynchronously, you can not dump information to the regular response stream. If you want to dump objects from the event handlers you should do so to a file.
Another thing to keep in mind is that many events may fire simultaneously, so it's a good idea to make the filename unique by using getTickCount("nano"). For example:
onOpen(websocket, endpointConfig, sessionScope, applicationScope){
dump(
var : arguments
,format: "html"
,output: getTempDirectory() & "/onOpen-#getTickCount('nano')#.html"
);
}