blue-sky
blue-sky

Reputation: 53806

How to read PLay! API docs?

Searching for method for method WebSocket.accept leads to : https://www.playframework.com/documentation/2.5.x/api/scala/index.html#play.api.mvc.WebSocket where the only method mentioned described is :

enter image description here

It appears the accept method is not a member of WebSocket ?


Searching with Google I find method defined in javadoc :

enter image description here

https://www.playframework.com/documentation/2.6.x/api/java/play/mvc/WebSocket.MappedWebSocketAcceptor.html

But this does'nt describe the Scala version.

Where is the scala doc for WebSocket.accept ?

Upvotes: 1

Views: 54

Answers (1)

Salem
Salem

Reputation: 12986

accept is a member of the WebSocket object. The link you provide is to a trait. See here: https://www.playframework.com/documentation/2.5.x/api/scala/index.html#play.api.mvc.WebSocket$

Upvotes: 2

Related Questions