Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebrock committed Apr 14, 2012
1 parent 6ab2fc8 commit 630eb02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -31,17 +31,17 @@ Example Implementation:
public class MyWebSocketServlet extends WebSocketServlet {

@Override
protected void onSocketOpened(HttpEvent event, WebSocket socket) throws IOException {
protected void onSocketOpened(WebSocket socket) throws IOException {
System.out.println("Websocket opened :)");
}

@Override
protected void onSocketClosed(HttpEvent event, WebSocket socket) throws IOException {
protected void onSocketClosed(WebSocket socket) throws IOException {
System.out.println("Websocket closed :(");
}

@Override
protected void onReceivedTextFrame(HttpEvent event, final WebSocket socket) throws IOException {
protected void onReceivedTextFrame(WebSocket socket) throws IOException {
final String text = socket.readTextFrame();
if ("Hello".equals(text)) {
socket.writeTextFrame("Hey, there!");
Expand Down

0 comments on commit 630eb02

Please sign in to comment.