We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6033db commit 243c94eCopy full SHA for 243c94e
server.js
@@ -62,7 +62,7 @@ function Server (opts) {
62
// default to starting a udp server unless the user explicitly says no
63
if (opts.udp !== false) {
64
self._udpSocket = dgram.createSocket('udp4')
65
- self._udpSocket.on('message', self._onUdpRequest.bind(self))
+ self._udpSocket.on('message', self.onUdpRequest.bind(self))
66
self._udpSocket.on('error', self._onError.bind(self))
67
self._udpSocket.on('listening', onListening)
68
}
@@ -158,7 +158,7 @@ Server.prototype.onHttpRequest = function (req, res) {
158
})
159
160
161
-Server.prototype._onUdpRequest = function (msg, rinfo) {
+Server.prototype.onUdpRequest = function (msg, rinfo) {
162
var self = this
163
164
var params
0 commit comments